Contains static storage providers and static factory methods for storage providers that require extra data to operate.
Be sure to install the necessary peer dependencies if using a storage provider that necessitates them.
Note: PostgresProvider and SQLiteProvider are mutually exclusive. You cannot use one while using the other as they utilize a singleton to maintain a shared Database connection between all Provider instances with a Sequelize backend
- Source:
Properties
.JSONProvider: StorageProviderConstructor
Default storage provider for the framework. If no storage provider is passed in the client constructor, this provider will be used
- Source:
Methods
(static) .MSSQLProvider(url: string) → StorageProviderConstructor
Factory method that returns a StorageProvider class for an MSSQL database via the given MSSQL url. The given url should follow the format:
mssql://username:password@hostname:port/dbname
Note: Requires
tedious
andsequelize
peer dependencies
Parameters:
Name | Type | Description |
---|---|---|
url |
|
MSSQL database url |
- Source:
(static) .MySQLProvider(url: string) → StorageProviderConstructor
Factory method that returns a StorageProvider class for an MySQL database via the given MySQL url. The given url should follow the format:
mysql://username:password@hostname:port/dbname
Note: Requires
mysql2
andsequelize
peer dependencies
Parameters:
Name | Type | Description |
---|---|---|
url |
|
MySQL database url |
- Source:
(static) .PostgresProvider(url: string) → StorageProviderConstructor
Factory method that returns a StorageProvider class for a Postgres database via the given Postgres url. The given url should follow the format:
postgres://username:password@hostname:port/dbname
Note: Requires
pg
andsequelize
peer dependencies
Parameters:
Name | Type | Description |
---|---|---|
url |
|
Postgres database url |
- Source:
(static) .SQLiteProvider(path: string) → StorageProviderConstructor
Factory method that returns a StorageProvider class for
an SQLite database via the given SQLite filepath.
The given path should be prefixed with sqlite://
Note: Requires
sqlite3
andsequelize
peer dependencies
Parameters:
Name | Type | Description |
---|---|---|
path |
|
SQLite file path |
- Source: