Skip to main content

Config Keys

This list is generated from module default configuration files.

KeyDefaultEnvironmentDescriptionSource
db.configuration"mysql"DATABASE_CONFIGURATIONThe default database configuration to be used in the application. The framework can support multiple database configurations that can be accessed at runtime as needed. If you don't want to use a database connection, set this value to empty. /db.ts
db.mysqlFor the other database connection types supported by the framework we can set the database connection parameters like the object below. /db.ts
db.mysql.engine"mysql2",The database engine you want to use to connect to a database server. /db.ts
db.mysql.hostname"localhost"DATABASE_MYSQL_HOSTNAMEThe address of the database server. /db.ts
db.mysql.port3306DATABASE_MYSQL_PORTThe port on which the database server is exposed. /db.ts
db.mysql.username"root"DATABASE_MYSQL_USERNAMEThe user used to connect to the database server. /db.ts
db.mysql.password""DATABASE_MYSQL_PASSWORDThe password used to connect to the database server. /db.ts
db.mysql.database"quik"DATABASE_MYSQL_DATABASEThe name of the database you want to use for your application. /db.ts
db.mysql.supportBigNumbersDATABASE_MYSQL_SUPPORT_BIG_NUMBERSWhen using the `mysql` engine, the bigint numbers are treated as integers by default. If you don't want to expose these numbers as integers, set this flag to `true`. /db.ts
db.mysql.bigNumberStringsDATABASE_MYSQL_BIG_NUMBERS_STRINGMySQL connection configuration.db.ts
db.mysql.timezone"Z"DATABASE_MYSQL_TIMEZONEWhen working with timestamps and date columns, you might want to store the data in the same timezone in the whole application. As a recommendation we suggest to keep it in UTC (or Z). /db.ts
db.postgresFor the other database connection types supported by the framework we can set the database connection parameters like the object below. /db.ts
db.postgres.engine"postgres",The database engine you want to use to connect to a database server. /db.ts
db.postgres.hostname"localhost"DATABASE_POSTGRES_HOSTNAMEThe address of the database server. /db.ts
db.postgres.port5432DATABASE_POSTGRES_PORTThe port on which the database server is exposed. /db.ts
db.postgres.username"postgres"DATABASE_POSTGRES_USERNAMEThe user used to connect to the database server. /db.ts
db.postgres.password"postgres"DATABASE_POSTGRES_PASSWORDThe password used to connect to the database server. /db.ts
db.postgres.database"quik"DATABASE_POSTGRES_DATABASEThe name of the database you want to use for your application. /db.ts
db.postgres.schema"public"DATABASE_POSTGRES_SCHEMAThe name of the schema from the database you want to use for your application. /db.ts
db.sqliteFor tests or lightweight development we can use a SQLite database. /db.ts
db.sqlite.engine"better-sqlite3",The database engine used by Knex. /db.ts
db.sqlite.filename":memory:"DATABASE_SQLITE_FILENAMEThe SQLite database filename. /db.ts
db.loggingDATABASE_LOGGINGEnable database logging. Boolean flag (defaults to false when unset).db.ts
db.debugDATABASE_DEBUGGINGEnable database debug mode. Boolean flag (defaults to false when unset).db.ts
db.migrationsConfiguration value.db.ts
db.migrations.enabledfalse,Configuration value.db.ts
db.migrations.table"_qMigration",Configuration value.db.ts
db.migrations.snapshotFile"./migrations/.schema-snapshot.json"DATABASE_MIGRATIONS_SNAPSHOT_FILEPath to the schema snapshot file `migration:generate` reads/writes to detect changes in registered `@Model()` classes. Covers every registered model, not just one module's. /db.ts