ConnectionOptions
Hierarchy
- ConnectionOptions
Index
Properties
optionalcharset
Character set for the connection.
optionalclientUrl
Full client connection URL. Overrides individual connection options.
optionalcollate
Collation for the connection.
optionaldbName
Name of the database to connect to.
optionaldriverOptions
Additional driver-specific options. The object will be deeply merged with internal driver options.
optionalhost
Database server hostname.
optionalmultipleStatements
Enable multiple statements in a single query. Required for importing database dump files. Should be disabled in production for security.
optionalname
Name of the connection (used for logging when replicas are used).
optionalonCreateConnection
Callback to execute when a new connection is created.
Type declaration
Parameters
connection: unknown
Returns Promise<void>
optionalpassword
Database password. Can be a string or a callback function that returns the password. The callback is useful for short-lived tokens from cloud providers.
optionalpool
Connection pool configuration.
optionalport
Database server port number.
optionalschema
Default database schema to use.
optionaluser
Database user name.
Connection configuration options for database connections.
https://mikro-orm.io/docs/configuration#connection