@stacksjs/database 0.70.88 → 0.70.90
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/auth-tables.d.ts +60 -0
- package/dist/auth-tables.js +220 -0
- package/dist/class-seeder.d.ts +65 -0
- package/dist/class-seeder.js +116 -0
- package/dist/column.d.ts +17 -0
- package/dist/column.js +26 -0
- package/dist/custom/audits.d.ts +16 -0
- package/dist/custom/audits.js +57 -0
- package/dist/custom/errors.d.ts +1 -0
- package/dist/custom/errors.js +48 -0
- package/dist/custom/index.d.ts +3 -0
- package/dist/custom/index.js +3 -0
- package/dist/custom/jobs.d.ts +3 -0
- package/dist/custom/jobs.js +449 -0
- package/dist/database.d.ts +89 -0
- package/dist/database.js +178 -0
- package/dist/defaults.d.ts +48 -0
- package/dist/defaults.js +48 -0
- package/dist/driver-config.d.ts +149 -0
- package/dist/driver-config.js +144 -0
- package/dist/drivers/defaults/index.d.ts +2 -0
- package/dist/drivers/defaults/index.js +2 -0
- package/dist/drivers/defaults/passwords.d.ts +4 -0
- package/dist/drivers/defaults/passwords.js +106 -0
- package/dist/drivers/defaults/traits.d.ts +33 -0
- package/dist/drivers/defaults/traits.js +1125 -0
- package/dist/drivers/dynamodb.d.ts +200 -0
- package/dist/drivers/dynamodb.js +607 -0
- package/dist/drivers/helpers.d.ts +35 -0
- package/dist/drivers/helpers.js +206 -0
- package/dist/drivers/index.d.ts +16 -0
- package/dist/drivers/index.js +9 -0
- package/dist/drivers/mysql.d.ts +7 -0
- package/dist/drivers/mysql.js +322 -0
- package/dist/drivers/postgres.d.ts +7 -0
- package/dist/drivers/postgres.js +411 -0
- package/dist/drivers/sqlite.d.ts +20 -0
- package/dist/drivers/sqlite.js +397 -0
- package/dist/factory.d.ts +41 -0
- package/dist/factory.js +51 -0
- package/dist/fk-audit.d.ts +101 -0
- package/dist/fk-audit.js +181 -0
- package/dist/index.d.ts +149 -0
- package/dist/index.js +55 -0
- package/dist/migration-lock.d.ts +23 -0
- package/dist/migration-lock.js +143 -0
- package/dist/migrations.d.ts +76 -0
- package/dist/migrations.js +528 -0
- package/dist/notification-tables.d.ts +20 -0
- package/dist/notification-tables.js +54 -0
- package/dist/query-logger.d.ts +26 -0
- package/dist/query-logger.js +213 -0
- package/dist/query-parser.d.ts +4 -0
- package/dist/query-parser.js +93 -0
- package/dist/rbac-tables.d.ts +17 -0
- package/dist/rbac-tables.js +84 -0
- package/dist/safe-migrations.d.ts +72 -0
- package/dist/safe-migrations.js +59 -0
- package/dist/schema.d.ts +4 -0
- package/dist/schema.js +10 -0
- package/dist/seed-scaffold.d.ts +34 -0
- package/dist/seed-scaffold.js +144 -0
- package/dist/seeder.d.ts +116 -0
- package/dist/seeder.js +363 -0
- package/dist/sql-helpers.d.ts +33 -0
- package/dist/sql-helpers.js +24 -0
- package/dist/table.d.ts +7 -0
- package/dist/table.js +26 -0
- package/dist/tools/setup.d.ts +1 -0
- package/dist/tools/setup.js +6 -0
- package/dist/transaction-context.d.ts +52 -0
- package/dist/transaction-context.js +62 -0
- package/dist/types.d.ts +151 -0
- package/dist/types.js +23 -0
- package/dist/unique-audit.d.ts +60 -0
- package/dist/unique-audit.js +174 -0
- package/dist/utils.d.ts +189 -0
- package/dist/utils.js +163 -0
- package/dist/uuid-columns.d.ts +22 -0
- package/dist/uuid-columns.js +68 -0
- package/dist/validators.d.ts +26 -0
- package/dist/validators.js +122 -0
- package/package.json +11 -11
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// bun-query-builder utilities are used via db.unsafe() for raw SQL
|
|
2
|
+
export declare function getTraitTables(): string[];
|
|
3
|
+
// SQLite/MySQL version
|
|
4
|
+
export declare function createPasskeyMigration(): Promise<void>;
|
|
5
|
+
// PostgreSQL version
|
|
6
|
+
export declare function createPostgresPasskeyMigration(): Promise<void>;
|
|
7
|
+
export declare function createTaggableTable(): Promise<void>;
|
|
8
|
+
export declare function createPostgresTagsTable(): Promise<void>;
|
|
9
|
+
// SQLite/MySQL version
|
|
10
|
+
export declare function createCategorizableTable(): Promise<void>;
|
|
11
|
+
// PostgreSQL version
|
|
12
|
+
export declare function createPostgresCategorizableTable(): Promise<void>;
|
|
13
|
+
// SQLite/MySQL version
|
|
14
|
+
export declare function createCommentablesTable(options?: {
|
|
15
|
+
requiresApproval?: boolean
|
|
16
|
+
reportable?: boolean
|
|
17
|
+
votable?: boolean
|
|
18
|
+
requiresAuth?: boolean
|
|
19
|
+
}): Promise<void>;
|
|
20
|
+
// PostgreSQL version
|
|
21
|
+
export declare function createPostgresCommentsTable(): Promise<void>;
|
|
22
|
+
export declare function dropCommonTables(): Promise<void>;
|
|
23
|
+
export declare function truncateMigrationTables(): Promise<void>;
|
|
24
|
+
export declare function dropMigrationTables(): Promise<void>;
|
|
25
|
+
export declare function createCommentUpvoteMigration(): Promise<void>;
|
|
26
|
+
export declare function createPostgresCommentUpvoteMigration(): Promise<void>;
|
|
27
|
+
export declare function createCommentablesPivotTable(): Promise<void>;
|
|
28
|
+
export declare function createPostgresCommentablesPivotTable(): Promise<void>;
|
|
29
|
+
export declare function createTaggablesTable(): Promise<void>;
|
|
30
|
+
export declare function createPostgresTaggablesTable(): Promise<void>;
|
|
31
|
+
export declare function createQueryLogsTable(): Promise<void>;
|
|
32
|
+
// PostgreSQL version
|
|
33
|
+
export declare function createPostgresQueryLogsTable(): Promise<void>;
|