Github user mxmrlv commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/68#discussion_r100087789
  
    --- Diff: aria/storage/sql_mapi.py ---
    @@ -364,6 +369,28 @@ def _load_relationships(instance):
                 getattr(instance, rel.key)
     
     
    +def init_storage(base_dir=None, filename='db.sqlite'):
    +    if base_dir is not None:
    +        uri = 'sqlite:///{platform_char}{path}'.format(
    +            # Handles the windows behavior where there is not root, but 
drivers.
    +            # Thus behaving as relative path.
    +            platform_char='' if 'Windows' in platform.system() else '/',
    +
    +            path=os.path.join(base_dir, filename))
    +        engine_kwargs = {}
    +    else:
    +        uri = 'sqlite:///:memory:'
    --- End diff --
    
    remove in memory option to tests only


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to