drizzle-cube 0.1.31 → 0.1.33
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 +51 -8
- package/dist/adapters/{compiler-CVega_Gv.js → compiler-Ce33cdy6.js} +925 -896
- package/dist/adapters/express/index.js +1 -1
- package/dist/adapters/fastify/index.js +1 -1
- package/dist/adapters/hono/index.js +1 -1
- package/dist/adapters/nextjs/index.js +1 -1
- package/dist/client/charts.js +1 -1
- package/dist/client/chunks/{charts-MTxju0dv.js → charts-D4v7aUDh.js} +268 -244
- package/dist/client/chunks/charts-D4v7aUDh.js.map +1 -0
- package/dist/client/chunks/components-BXU3r9yv.js +19905 -0
- package/dist/client/chunks/components-BXU3r9yv.js.map +1 -0
- package/dist/client/chunks/{icons-C_McHd9z.js → icons-CEfXECaS.js} +174 -298
- package/dist/client/chunks/icons-CEfXECaS.js.map +1 -0
- package/dist/client/components/Modal.d.ts +1 -1
- package/dist/client/components.js +16 -19642
- package/dist/client/components.js.map +1 -1
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +31 -24
- package/dist/client/styles.css +1 -1
- package/dist/client/theme/index.d.ts +101 -0
- package/dist/client-bundle-stats.html +1 -1
- package/dist/server/index.d.ts +11 -2
- package/dist/server/index.js +1258 -1229
- package/package.json +2 -2
- package/dist/client/chunks/charts-MTxju0dv.js.map +0 -1
- package/dist/client/chunks/icons-C_McHd9z.js.map +0 -1
package/dist/server/index.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ import { BetterSQLite3Database } from 'drizzle-orm/better-sqlite3';
|
|
|
3
3
|
import { MySql2Database } from 'drizzle-orm/mysql2';
|
|
4
4
|
import { PostgresJsDatabase } from 'drizzle-orm/postgres-js';
|
|
5
5
|
import { SQL } from 'drizzle-orm';
|
|
6
|
+
import { Subquery } from 'drizzle-orm';
|
|
7
|
+
import { Table } from 'drizzle-orm';
|
|
8
|
+
import { View } from 'drizzle-orm';
|
|
6
9
|
|
|
7
10
|
/**
|
|
8
11
|
* Abstract base class for database executors
|
|
@@ -22,10 +25,10 @@ export declare abstract class BaseDatabaseExecutor implements DatabaseExecutor {
|
|
|
22
25
|
*/
|
|
23
26
|
export declare interface BaseQueryDefinition {
|
|
24
27
|
/** Main table to query from */
|
|
25
|
-
from:
|
|
28
|
+
from: QueryableRelation;
|
|
26
29
|
/** Optional joins to other tables */
|
|
27
30
|
joins?: Array<{
|
|
28
|
-
table:
|
|
31
|
+
table: QueryableRelation;
|
|
29
32
|
on: SQL;
|
|
30
33
|
type?: 'left' | 'right' | 'inner' | 'full';
|
|
31
34
|
}>;
|
|
@@ -490,6 +493,12 @@ export declare class PostgresExecutor extends BaseDatabaseExecutor {
|
|
|
490
493
|
getEngineType(): 'postgres';
|
|
491
494
|
}
|
|
492
495
|
|
|
496
|
+
/**
|
|
497
|
+
* Any queryable relation that can be used in FROM/JOIN clauses
|
|
498
|
+
* Supports tables, views, subqueries, and raw SQL expressions
|
|
499
|
+
*/
|
|
500
|
+
export declare type QueryableRelation = Table | View | Subquery | SQL;
|
|
501
|
+
|
|
493
502
|
export declare class QueryBuilder {
|
|
494
503
|
private databaseAdapter;
|
|
495
504
|
constructor(databaseAdapter: DatabaseAdapter);
|