@storyshelf/db-mysql 0.13.0 → 0.14.0
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/README.md +22 -1
- package/dist/baseline-preparation.mjs +154 -0
- package/dist/baseline-preparation.mjs.map +1 -0
- package/dist/build-deletion-steps.mjs +98 -0
- package/dist/build-deletion-steps.mjs.map +1 -0
- package/dist/build-reference-lifecycle.mjs +157 -0
- package/dist/build-reference-lifecycle.mjs.map +1 -0
- package/dist/content-uses.mjs +192 -0
- package/dist/content-uses.mjs.map +1 -0
- package/dist/ddl.d.mts +1 -1
- package/dist/ddl.mjs +76 -0
- package/dist/ddl.mjs.map +1 -1
- package/dist/drizzle-factory-mysql.mjs +6 -2
- package/dist/drizzle-factory-mysql.mjs.map +1 -1
- package/dist/foreign-keys.mjs +57 -0
- package/dist/foreign-keys.mjs.map +1 -1
- package/dist/index.d.mts +9 -1
- package/dist/index.mjs +36 -10
- package/dist/index.mjs.map +1 -1
- package/dist/lifecycle-transaction.mjs +105 -0
- package/dist/lifecycle-transaction.mjs.map +1 -0
- package/dist/migrate.mjs +11 -1
- package/dist/migrate.mjs.map +1 -1
- package/dist/planetscale.mjs +2 -2
- package/dist/planetscale.mjs.map +1 -1
- package/dist/retention-activation.mjs +127 -0
- package/dist/retention-activation.mjs.map +1 -0
- package/dist/schema/build.d.mts +17 -0
- package/dist/schema/build.mjs +2 -0
- package/dist/schema/build.mjs.map +1 -1
- package/dist/schema/git-connection.d.mts +505 -0
- package/dist/schema/git-connection.mjs +66 -0
- package/dist/schema/git-connection.mjs.map +1 -0
- package/dist/schema.d.mts +4 -1
- package/dist/schema.mjs +5 -2
- package/dist/schema.mjs.map +1 -1
- package/dist/tidb.mjs +2 -2
- package/dist/tidb.mjs.map +1 -1
- package/package.json +3 -2
package/dist/tidb.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "node:path";
|
|
2
2
|
import "node:url";
|
|
3
3
|
import.meta.url;
|
|
4
|
-
import {
|
|
4
|
+
import { createMysqlAdapter } from "./index.mjs";
|
|
5
5
|
// src/tidb.ts
|
|
6
6
|
function createTidbDatabase(options) {
|
|
7
|
-
return
|
|
7
|
+
return createMysqlAdapter(options, "the TiDB Serverless preset is not verified for build retention");
|
|
8
8
|
}
|
|
9
9
|
export { createTidbDatabase };
|
|
10
10
|
|
package/dist/tidb.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tidb.mjs","names":[],"sources":["../src/tidb.ts"],"sourcesContent":["import type { DatabaseAdapter } from \"@storyshelf/core/adapter/database\";\nimport {
|
|
1
|
+
{"version":3,"file":"tidb.mjs","names":[],"sources":["../src/tidb.ts"],"sourcesContent":["import type { DatabaseAdapter } from \"@storyshelf/core/adapter/database\";\nimport { createMysqlAdapter, type MysqlDatabaseOptions } from \"./index.ts\";\n\n/**\n * TiDB Serverless (MySQL wire, serverless) preset.\n * Alias over the mysql2 pool — TiDB's serverless driver\n * (`@tidbcloud/serverless` + `drizzle-orm/tidb-serverless`) is\n * wire-compatible and can be swapped when the optional peer is installed.\n */\nexport type TidbDatabaseOptions = MysqlDatabaseOptions;\n\nexport function createTidbDatabase(options: TidbDatabaseOptions): DatabaseAdapter {\n // Build retention (ADR 0039) was never proven on TiDB Serverless: it stays fail closed.\n return createMysqlAdapter(\n options,\n \"the TiDB Serverless preset is not verified for build retention\",\n );\n}\n"],"mappings":";;;;;AAWA,SAAgB,mBAAmB,SAA+C;CAEhF,OAAO,mBACL,SACA,gEACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storyshelf/db-mysql",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "MySQL/MariaDB database adapter for StoryShelf (mysql2 + Drizzle, PlanetScale/TiDB compatible).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"database",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"prepublishOnly": "nub run build"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@storyshelf/core": "0.
|
|
75
|
+
"@storyshelf/core": "0.14.0",
|
|
76
76
|
"drizzle-orm": "^0.45.4",
|
|
77
77
|
"mysql2": "^3.9.0"
|
|
78
78
|
},
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"@tidbcloud/serverless": "^0.1.0",
|
|
82
82
|
"@types/node": "^26.0.0",
|
|
83
83
|
"@vitest/coverage-v8": "^4.0.0",
|
|
84
|
+
"drizzle-kit": "0.31.11",
|
|
84
85
|
"mysql2": "^3.9.0",
|
|
85
86
|
"oxfmt": "^0.65.0",
|
|
86
87
|
"oxlint": "^1.80.0",
|