예제 #1
0
파일: provider.py 프로젝트: trickvi/spendb
 def __init__(self, **options):
     super(SQLStore, self).__init__(**options)
     options = dict(options)
     self.options = coalesce_options(options, OPTION_TYPES)
     self.logger = get_logger()
     self.schema = None
     self._metadata = None
예제 #2
0
 def __init__(self, **options):
     super(SQLStore, self).__init__(**options)
     options = dict(options)
     self.options = coalesce_options(options, OPTION_TYPES)
     self.logger = get_logger()
     self.schema = None
     self._metadata = None
예제 #3
0
 def __init__(self, **options):
     SQLALCHEMY_DATABASE_URI = current_app.config.get(
         'SQLALCHEMY_DATABASE_URI')
     super(OpenSpendingStore, self).__init__(url=SQLALCHEMY_DATABASE_URI,
                                             **options)
     options = dict(options)
     self.options = options
     self.options = coalesce_options(options, OPTION_TYPES)
예제 #4
0
 def __init__(self, **options):
     SQLALCHEMY_DATABASE_URI = current_app.config.get('SQLALCHEMY_DATABASE_URI')
     super(OpenSpendingStore, self).__init__(url=SQLALCHEMY_DATABASE_URI, **options)
     options = dict(options)
     self.options = options
     self.options = coalesce_options(options, OPTION_TYPES)