@goodie-ts/kysely 1.0.0 → 2.0.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 +2 -2
- package/dist/abstract-migration.d.ts +2 -2
- package/dist/abstract-migration.js +2 -2
- package/dist/{beans.json → components.json} +786 -62
- package/dist/decorators/migration.d.ts +1 -1
- package/dist/decorators/migration.js +1 -1
- package/dist/dialects/d1.js +4 -4
- package/dist/dialects/d1.js.map +1 -1
- package/dist/dialects/libsql.d.ts.map +1 -1
- package/dist/dialects/libsql.js +6 -6
- package/dist/dialects/libsql.js.map +1 -1
- package/dist/dialects/mysql.d.ts.map +1 -1
- package/dist/dialects/mysql.js +6 -6
- package/dist/dialects/mysql.js.map +1 -1
- package/dist/dialects/neon.d.ts.map +1 -1
- package/dist/dialects/neon.js +6 -6
- package/dist/dialects/neon.js.map +1 -1
- package/dist/dialects/planetscale.d.ts.map +1 -1
- package/dist/dialects/planetscale.js +6 -6
- package/dist/dialects/planetscale.js.map +1 -1
- package/dist/dialects/postgres.d.ts.map +1 -1
- package/dist/dialects/postgres.js +6 -6
- package/dist/dialects/postgres.js.map +1 -1
- package/dist/dialects/sqlite.d.ts.map +1 -1
- package/dist/dialects/sqlite.js +6 -6
- package/dist/dialects/sqlite.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/kysely-database.d.ts +2 -2
- package/dist/kysely-database.js +2 -2
- package/dist/kysely-transformer-plugin.d.ts +2 -5
- package/dist/kysely-transformer-plugin.d.ts.map +1 -1
- package/dist/kysely-transformer-plugin.js +18 -197
- package/dist/kysely-transformer-plugin.js.map +1 -1
- package/dist/migration-post-processor.d.ts +18 -0
- package/dist/migration-post-processor.d.ts.map +1 -0
- package/dist/migration-post-processor.js +117 -0
- package/dist/migration-post-processor.js.map +1 -0
- package/dist/pool-config.d.ts.map +1 -1
- package/dist/pool-config.js +2 -2
- package/dist/pool-config.js.map +1 -1
- package/dist/transaction-manager.d.ts +6 -4
- package/dist/transaction-manager.d.ts.map +1 -1
- package/dist/transaction-manager.js +166 -119
- package/dist/transaction-manager.js.map +1 -1
- package/dist/transactional-interceptor.d.ts.map +1 -1
- package/dist/transactional-interceptor.js +68 -17
- package/dist/transactional-interceptor.js.map +1 -1
- package/package.json +6 -6
- package/dist/migration-runner.d.ts +0 -16
- package/dist/migration-runner.d.ts.map +0 -1
- package/dist/migration-runner.js +0 -45
- package/dist/migration-runner.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @goodie-ts/kysely
|
|
2
2
|
|
|
3
|
-
[Kysely](https://kysely.dev/) integration for [goodie-ts](https://github.com/GOOD-Code-ApS/goodie) — `KyselyDatabase` library
|
|
3
|
+
[Kysely](https://kysely.dev/) integration for [goodie-ts](https://github.com/GOOD-Code-ApS/goodie) — `KyselyDatabase` library component, declarative transactions, and auto-wired migrations.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -109,7 +109,7 @@ export default defineConfig({
|
|
|
109
109
|
});
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
-
The kysely plugin is auto-discovered — no manual `plugins` configuration needed. `KyselyDatabase` is provided as a library
|
|
112
|
+
The kysely plugin is auto-discovered — no manual `plugins` configuration needed. `KyselyDatabase` is provided as a library component.
|
|
113
113
|
|
|
114
114
|
## License
|
|
115
115
|
|
|
@@ -3,8 +3,8 @@ import type { Kysely } from 'kysely';
|
|
|
3
3
|
* Abstract base class for Kysely migrations.
|
|
4
4
|
*
|
|
5
5
|
* Extend this class and decorate with `@Migration('name')` to define a
|
|
6
|
-
* migration that is auto-discovered and executed by the
|
|
7
|
-
*
|
|
6
|
+
* migration that is auto-discovered and executed by the MigrationPostProcessor
|
|
7
|
+
* when KyselyDatabase is initialized.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
10
|
* ```typescript
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Abstract base class for Kysely migrations.
|
|
3
3
|
*
|
|
4
4
|
* Extend this class and decorate with `@Migration('name')` to define a
|
|
5
|
-
* migration that is auto-discovered and executed by the
|
|
6
|
-
*
|
|
5
|
+
* migration that is auto-discovered and executed by the MigrationPostProcessor
|
|
6
|
+
* when KyselyDatabase is initialized.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
9
|
* ```typescript
|