import "../dialect-helpers-DhTzaUxP.mjs";
import { n as rollbackMigration, r as runMigrations, t as getMigrationStatus } from "../runner-Cd-_WyDo.mjs";

//#region src/db/adapters.ts
/**
* SQLite database adapter (better-sqlite3)
*
* For local development and Node.js deployments.
*
* @example
* ```ts
* database: sqlite({ url: "file:./data.db" })
* ```
*/
function sqlite(config) {
	return {
		entrypoint: "emdash/db/sqlite",
		config,
		type: "sqlite"
	};
}
/**
* libSQL database adapter (Turso)
*
* For Turso hosted databases or local libSQL.
*
* @example
* ```ts
* database: libsql({
*   url: "libsql://my-db.turso.io",
*   authToken: process.env.TURSO_AUTH_TOKEN,
* })
* ```
*/
function libsql(config) {
	return {
		entrypoint: "emdash/db/libsql",
		config,
		type: "sqlite"
	};
}
/**
* PostgreSQL database adapter
*
* For PostgreSQL deployments with connection pooling.
*
* @example
* ```ts
* database: postgres({ connectionString: process.env.DATABASE_URL })
* ```
*/
function postgres(config) {
	return {
		entrypoint: "emdash/db/postgres",
		config,
		type: "postgres"
	};
}

//#endregion
export { getMigrationStatus, libsql, postgres, rollbackMigration, runMigrations, sqlite };
//# sourceMappingURL=index.mjs.map