@alchemy.run/drizzle 0.0.0 → 2.0.0-beta.85
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/LICENSE +201 -0
- package/README.md +82 -4
- package/lib/Cloudflare.d.ts +104 -0
- package/lib/Cloudflare.d.ts.map +1 -0
- package/lib/Cloudflare.js +115 -0
- package/lib/Cloudflare.js.map +1 -0
- package/lib/D1.d.ts +48 -0
- package/lib/D1.d.ts.map +1 -0
- package/lib/D1.js +50 -0
- package/lib/D1.js.map +1 -0
- package/lib/LibSQL.d.ts +45 -0
- package/lib/LibSQL.d.ts.map +1 -0
- package/lib/LibSQL.js +47 -0
- package/lib/LibSQL.js.map +1 -0
- package/lib/MySQL.d.ts +45 -0
- package/lib/MySQL.d.ts.map +1 -0
- package/lib/MySQL.js +42 -0
- package/lib/MySQL.js.map +1 -0
- package/lib/Postgres.d.ts +62 -0
- package/lib/Postgres.d.ts.map +1 -0
- package/lib/Postgres.js +59 -0
- package/lib/Postgres.js.map +1 -0
- package/lib/Providers.d.ts +47 -0
- package/lib/Providers.d.ts.map +1 -0
- package/lib/Providers.js +45 -0
- package/lib/Providers.js.map +1 -0
- package/lib/Schema.d.ts +85 -0
- package/lib/Schema.d.ts.map +1 -0
- package/lib/Schema.js +514 -0
- package/lib/Schema.js.map +1 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +14 -0
- package/lib/index.js.map +1 -0
- package/package.json +78 -3
- package/src/Cloudflare.ts +144 -0
- package/src/D1.ts +77 -0
- package/src/LibSQL.ts +74 -0
- package/src/MySQL.ts +86 -0
- package/src/Postgres.ts +100 -0
- package/src/Providers.ts +51 -0
- package/src/Schema.ts +773 -0
- package/src/index.ts +19 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export * from "./D1.ts";
|
|
2
|
+
|
|
3
|
+
// The tagged errors drizzle's effect drivers fail with — re-exported so
|
|
4
|
+
// consumers can reference them without reaching into drizzle-orm
|
|
5
|
+
// internals. (`Effect.catchTag` needs only the tag string; these are for
|
|
6
|
+
// instanceof checks, schemas, and annotations.)
|
|
7
|
+
export {
|
|
8
|
+
EffectDrizzleError,
|
|
9
|
+
EffectDrizzleQueryError,
|
|
10
|
+
EffectTransactionRollbackError,
|
|
11
|
+
MigratorInitError,
|
|
12
|
+
} from "drizzle-orm/effect-core";
|
|
13
|
+
export * from "./Providers.ts";
|
|
14
|
+
export * from "./Schema.ts";
|
|
15
|
+
// MySQL and Postgres are deliberately NOT re-exported here: their drivers
|
|
16
|
+
// (`@effect/sql-mysql2`/`mysql2`, `@effect/sql-pg`/`pg`) are optional peer
|
|
17
|
+
// dependencies, and keeping them out of the barrel keeps them out of every
|
|
18
|
+
// non-user's module graph. Import them via their subpaths instead:
|
|
19
|
+
// `@alchemy.run/drizzle/MySQL`, `@alchemy.run/drizzle/Postgres`.
|