The congress.db.datasources
Module¶
-
class
congress.db.datasources.
Datasource
(id_, name, driver, config, description, enabled=True)¶ Bases:
sqlalchemy.ext.declarative.api.Base
,congress.db.model_base.HasId
-
config
¶
-
description
¶
-
driver
¶
-
enabled
¶
-
id
¶
-
name
¶
-
-
congress.db.datasources.
add_datasource
(id_, name, driver, config, description, enabled, session=None)¶
-
congress.db.datasources.
delete_datasource
(id_, session=None)¶
-
congress.db.datasources.
delete_datasource_with_data
(id_, session=None)¶
-
congress.db.datasources.
get_datasource
(name_or_id, session=None)¶
-
congress.db.datasources.
get_datasource_by_id
(id_, session=None)¶
-
congress.db.datasources.
get_datasource_by_name
(name, session=None)¶
-
congress.db.datasources.
get_datasource_name
(name_or_id, session=None)¶
-
congress.db.datasources.
get_datasources
(session=None, deleted=False)¶