bun-query-builder 0.1.2
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.md +21 -0
- package/README.md +150 -0
- package/dist/actions/explain.d.ts +1 -0
- package/dist/actions/file.d.ts +2 -0
- package/dist/actions/index.d.ts +8 -0
- package/dist/actions/introspect.d.ts +2 -0
- package/dist/actions/migrate.d.ts +3 -0
- package/dist/actions/ping.d.ts +1 -0
- package/dist/actions/sql.d.ts +2 -0
- package/dist/actions/unsafe.d.ts +2 -0
- package/dist/actions/wait-ready.d.ts +2 -0
- package/dist/client.d.ts +427 -0
- package/dist/config.d.ts +3 -0
- package/dist/factory.d.ts +7 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +3934 -0
- package/dist/loader.d.ts +6 -0
- package/dist/meta.d.ts +14 -0
- package/dist/migrations.d.ts +65 -0
- package/dist/schema.d.ts +220 -0
- package/dist/types.d.ts +216 -0
- package/package.json +99 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DatabaseSchema, ModelRecord } from './schema';
|
|
2
|
+
export declare function buildDatabaseSchema<MRecord extends ModelRecord>(models: MRecord): BuildDatabaseSchema<MRecord>;
|
|
3
|
+
export type BuildDatabaseSchema<MRecord extends ModelRecord> = DatabaseSchema<MRecord>
|
|
4
|
+
export type TablesFromSchema<DB> = keyof DB & string
|
|
5
|
+
export type ColumnsOf<DB, TTable extends keyof DB & string> = DB[TTable] extends { columns: infer C }
|
|
6
|
+
? C
|
|
7
|
+
: never
|
package/dist/index.d.ts
ADDED