(database_url: string): Promise<CreateDbResult> import {create_db} from '@fuzdev/fuz_app/db/create_db.js'; Create a database connection based on a URL.
The close callback is bound to the actual driver — callers never need to
know which driver is in use.
For direct driver construction without URL routing, import create_pg_db from db/db_pg.ts, create_pglite_db from db/db_pglite.ts or create_pglet_db_driver from db/db_pglet.ts.
database_url
connection URL (postgres://, postgresql://, file://, or memory://)
stringreturns
Promise<CreateDbResult>
database instance, close callback, type, and display name
throws
Error- if `database_url` uses an unsupported scheme. Driver construction (`pg.Pool`, `PGlite` or pglet) may also throw on bad connection parameters or missing peer-dependency packages.