Storage configuration
hololinked.storage.config.SQLDBConfig
Bases: BaseModel
Configuration validator for SQL databases for PostgreSQL and MySQL.
Source code in repo/hololinked/hololinked/storage/config.py
Attributes
provider
class-attribute
instance-attribute
Database provider, postgresql or mysql
database
class-attribute
instance-attribute
database name, default hololinked
user
class-attribute
instance-attribute
user name, default hololinked, recommended not to use admin user
password
class-attribute
instance-attribute
user password, default empty
dialect
class-attribute
instance-attribute
dialect to use, default psycopg for postgresql
uri
class-attribute
instance-attribute
Full database URI, overrides other settings, default empty
hololinked.storage.config.SQLiteConfig
Bases: BaseModel
Configuration validator for SQLite database.
Source code in repo/hololinked/hololinked/storage/config.py
Attributes
provider
class-attribute
instance-attribute
Database provider, only sqlite is supported
dialect
class-attribute
instance-attribute
dialect to use, aiosqlite for async, pysqlite for sync
file
class-attribute
instance-attribute
SQLite database file, default is empty string, which leads to an DB with name of thing ID
in_memory
class-attribute
instance-attribute
Use in-memory SQLite database, default False as it is not persistent
uri
class-attribute
instance-attribute
Full database URI, overrides other settings, default empty
hololinked.storage.config.MongoDBConfig
Bases: BaseModel
Configuration validator for MongoDB database.
Source code in repo/hololinked/hololinked/storage/config.py
Attributes
provider
class-attribute
instance-attribute
Database provider, only mongo is supported
database
class-attribute
instance-attribute
database name, default hololinked
user
class-attribute
instance-attribute
user name, default empty, recommended not to use admin user
password
class-attribute
instance-attribute
user password, default empty
authSource
class-attribute
instance-attribute
authentication source database, default empty
uri
class-attribute
instance-attribute
Full database URI, overrides other settings, default empty