Factory function to create a database instance based on the configuration. It automatically selects the correct implementation (Postgres or SQLite) based on the dialect field.
dialect
The database configuration.
A promise resolving to a Database instance.
Factory function to create a database instance based on the configuration. It automatically selects the correct implementation (Postgres or SQLite) based on the
dialectfield.