@storyshelf/db-mysql 0.7.0 → 0.8.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/dist/ddl.d.mts +1 -3
- package/dist/ddl.mjs +10 -3
- package/dist/ddl.mjs.map +1 -1
- package/dist/drizzle-factory-mysql.mjs +8 -7
- package/dist/drizzle-factory-mysql.mjs.map +1 -1
- package/dist/drizzle-factory.mjs +1 -2
- package/dist/foreign-keys.mjs +1 -2
- package/dist/index.d.mts +0 -2
- package/dist/index.mjs +2 -3
- package/dist/migrate.mjs +51 -3
- package/dist/migrate.mjs.map +1 -1
- package/dist/planetscale.d.mts +0 -2
- package/dist/planetscale.mjs +1 -2
- package/dist/schema/baseline.d.mts +32 -16
- package/dist/schema/baseline.mjs +2 -2
- package/dist/schema/baseline.mjs.map +1 -1
- package/dist/schema/build-component.d.mts +9 -11
- package/dist/schema/build-component.mjs +1 -2
- package/dist/schema/build-review.d.mts +7 -9
- package/dist/schema/build-review.mjs +1 -2
- package/dist/schema/build.d.mts +23 -25
- package/dist/schema/build.mjs +1 -2
- package/dist/schema/capture-attempt.d.mts +25 -27
- package/dist/schema/capture-attempt.mjs +1 -2
- package/dist/schema/capture-job.d.mts +19 -21
- package/dist/schema/capture-job.mjs +1 -2
- package/dist/schema/capture-shard.d.mts +15 -17
- package/dist/schema/capture-shard.mjs +1 -2
- package/dist/schema/comment.d.mts +12 -14
- package/dist/schema/comment.mjs +1 -2
- package/dist/schema/connection.d.mts +10 -12
- package/dist/schema/connection.mjs +1 -2
- package/dist/schema/content-refs.d.mts +5 -7
- package/dist/schema/content-refs.mjs +1 -2
- package/dist/schema/datetime.mjs +1 -2
- package/dist/schema/design.d.mts +33 -35
- package/dist/schema/design.mjs +1 -2
- package/dist/schema/insight.d.mts +36 -38
- package/dist/schema/insight.mjs +1 -2
- package/dist/schema/label.d.mts +15 -17
- package/dist/schema/label.mjs +1 -2
- package/dist/schema/member.d.mts +7 -9
- package/dist/schema/member.mjs +1 -2
- package/dist/schema/notification.d.mts +20 -22
- package/dist/schema/notification.mjs +1 -2
- package/dist/schema/project-group-mapping.d.mts +6 -8
- package/dist/schema/project-group-mapping.mjs +1 -2
- package/dist/schema/project.d.mts +25 -27
- package/dist/schema/project.mjs +1 -2
- package/dist/schema/site-setting.d.mts +6 -8
- package/dist/schema/site-setting.mjs +1 -2
- package/dist/schema/snapshot.d.mts +85 -33
- package/dist/schema/snapshot.mjs +4 -2
- package/dist/schema/snapshot.mjs.map +1 -1
- package/dist/schema/token.d.mts +8 -10
- package/dist/schema/token.mjs +1 -2
- package/dist/schema/usage.d.mts +15 -17
- package/dist/schema/usage.mjs +1 -2
- package/dist/schema/user-invite.d.mts +7 -9
- package/dist/schema/user-invite.mjs +1 -2
- package/dist/schema/user.d.mts +82 -10
- package/dist/schema/user.mjs +7 -4
- package/dist/schema/user.mjs.map +1 -1
- package/dist/schema/webhook.d.mts +8 -10
- package/dist/schema/webhook.mjs +1 -2
- package/dist/schema.d.mts +0 -2
- package/dist/schema.mjs +1 -2
- package/dist/tidb.d.mts +0 -2
- package/dist/tidb.mjs +1 -2
- package/package.json +4 -4
package/dist/schema.mjs
CHANGED
|
@@ -25,7 +25,7 @@ import { tokens } from "./schema/token.mjs";
|
|
|
25
25
|
import { buildPackageUsage, projectLinks } from "./schema/usage.mjs";
|
|
26
26
|
import { userInviteTokens } from "./schema/user-invite.mjs";
|
|
27
27
|
import { webhooks } from "./schema/webhook.mjs";
|
|
28
|
-
|
|
28
|
+
// src/schema/index.ts
|
|
29
29
|
/** Full Drizzle schema object passed to the database client. */
|
|
30
30
|
const schema = {
|
|
31
31
|
projects,
|
|
@@ -61,7 +61,6 @@ const schema = {
|
|
|
61
61
|
projectGroupMappings,
|
|
62
62
|
contentRefs
|
|
63
63
|
};
|
|
64
|
-
//#endregion
|
|
65
64
|
export { aiBudgetAlerts, aiUsage, baselines, buildComponents, buildLabels, buildPackageUsage, buildReviews, builds, captureAttempts, captureJobs, captureLogs, captureShards, comments, contentRefs, designCredentials, designLinks, designNodes, insights, labelTypes, notificationChannels, notificationSubscriptions, projectGroupMappings, projectLinks, projectMembers, projects, schema, siteSettings, snapshots, tokens, userConnections, userInviteTokens, users, webhooks };
|
|
66
65
|
|
|
67
66
|
//# sourceMappingURL=schema.mjs.map
|
package/dist/tidb.d.mts
CHANGED
|
@@ -2,7 +2,6 @@ import __tsdown_shims_path from 'node:path';
|
|
|
2
2
|
import __tsdown_shims_url from 'node:url';
|
|
3
3
|
import { MysqlDatabaseOptions } from "./index.mjs";
|
|
4
4
|
import { DatabaseAdapter } from "@storyshelf/core/adapter/database";
|
|
5
|
-
//#region src/tidb.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* TiDB Serverless (MySQL wire, serverless) preset.
|
|
8
7
|
* Alias over the mysql2 pool — TiDB's serverless driver
|
|
@@ -11,6 +10,5 @@ import { DatabaseAdapter } from "@storyshelf/core/adapter/database";
|
|
|
11
10
|
*/
|
|
12
11
|
type TidbDatabaseOptions = MysqlDatabaseOptions;
|
|
13
12
|
declare function createTidbDatabase(options: TidbDatabaseOptions): DatabaseAdapter;
|
|
14
|
-
//#endregion
|
|
15
13
|
export { TidbDatabaseOptions, createTidbDatabase };
|
|
16
14
|
//# sourceMappingURL=tidb.d.mts.map
|
package/dist/tidb.mjs
CHANGED
|
@@ -2,11 +2,10 @@ import "node:path";
|
|
|
2
2
|
import "node:url";
|
|
3
3
|
import.meta.url;
|
|
4
4
|
import { createMysqlDatabase } from "./index.mjs";
|
|
5
|
-
|
|
5
|
+
// src/tidb.ts
|
|
6
6
|
function createTidbDatabase(options) {
|
|
7
7
|
return createMysqlDatabase(options);
|
|
8
8
|
}
|
|
9
|
-
//#endregion
|
|
10
9
|
export { createTidbDatabase };
|
|
11
10
|
|
|
12
11
|
//# sourceMappingURL=tidb.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storyshelf/db-mysql",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "MySQL/MariaDB database adapter for StoryShelf (mysql2 + Drizzle, PlanetScale/TiDB compatible).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"database",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"prepublishOnly": "nub run build"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@storyshelf/core": "0.
|
|
76
|
-
"drizzle-orm": "^0.
|
|
75
|
+
"@storyshelf/core": "0.8.0",
|
|
76
|
+
"drizzle-orm": "^0.45.4",
|
|
77
77
|
"mysql2": "^3.9.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"oxlint-tsgolint": "^7.0.2001",
|
|
88
88
|
"tsdown": "^0.22.14",
|
|
89
89
|
"typescript": "^7.0.2",
|
|
90
|
-
"vitest": "^5.0.
|
|
90
|
+
"vitest": "^5.0.5"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
93
|
"@planetscale/database": "^1.19.0",
|