@duckdbfan/drizzle-duckdb 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +7 -0
- package/package.json +2 -2
- package/src/index.ts +2 -1
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -418,7 +418,14 @@ class DuckDBSelectBuilder extends PgSelectBuilder {
|
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
+
// src/migrator.ts
|
|
422
|
+
import { readMigrationFiles } from "drizzle-orm/migrator";
|
|
423
|
+
async function migrate(db, config) {
|
|
424
|
+
const migrations = readMigrationFiles(config);
|
|
425
|
+
await db.dialect.migrate(migrations, db.session, config);
|
|
426
|
+
}
|
|
421
427
|
export {
|
|
428
|
+
migrate,
|
|
422
429
|
drizzle,
|
|
423
430
|
DuckDBTransaction,
|
|
424
431
|
DuckDBSession,
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duckdbfan/drizzle-duckdb",
|
|
3
3
|
"module": "index.ts",
|
|
4
|
-
"main": "dist/index.
|
|
4
|
+
"main": "dist/index.mjs",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.6",
|
|
7
7
|
"description": "A drizzle ORM client for use with DuckDB. Based on drizzle's Postgres client.",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"scripts": {
|
package/src/index.ts
CHANGED