@gscdump/engine 1.4.1 → 1.4.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/dist/drizzle-schema.d.mts +150 -150
- package/dist/drizzle-schema.mjs +5 -1
- package/dist/resolver/pg-adapter.mjs +3 -1
- package/dist/schema.mjs +1 -1
- package/package.json +9 -4
package/dist/drizzle-schema.mjs
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import { date
|
|
1
|
+
import { date } from "drizzle-orm/pg-core/columns/date";
|
|
2
|
+
import { doublePrecision } from "drizzle-orm/pg-core/columns/double-precision";
|
|
3
|
+
import { integer } from "drizzle-orm/pg-core/columns/integer";
|
|
4
|
+
import { varchar } from "drizzle-orm/pg-core/columns/varchar";
|
|
5
|
+
import { pgTable } from "drizzle-orm/pg-core/table";
|
|
2
6
|
function metricCols() {
|
|
3
7
|
return {
|
|
4
8
|
clicks: integer("clicks").notNull(),
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { drizzleSchema } from "../drizzle-schema.mjs";
|
|
2
2
|
import { createResolverAdapter } from "./adapter.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { varchar } from "drizzle-orm/pg-core/columns/varchar";
|
|
4
|
+
import { pgTable } from "drizzle-orm/pg-core/table";
|
|
4
5
|
import { DEFAULT_PARTITION_KEY_ENCODING } from "@gscdump/lakehouse/schema";
|
|
5
6
|
import { sql } from "drizzle-orm";
|
|
7
|
+
import { PgDialect } from "drizzle-orm/pg-core/dialect";
|
|
6
8
|
const pgDialect = new PgDialect();
|
|
7
9
|
function withTenantCols(tableName, baseTable) {
|
|
8
10
|
const t = pgTable(tableName, {
|
package/dist/schema.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TABLE_METADATA, countries, dates, drizzleSchema, hourly_pages, page_queries, pages, queries, search_appearance, search_appearance_page_queries, search_appearance_pages, search_appearance_queries } from "./drizzle-schema.mjs";
|
|
2
|
-
import { getTableConfig } from "drizzle-orm/pg-core";
|
|
2
|
+
import { getTableConfig } from "drizzle-orm/pg-core/utils";
|
|
3
3
|
function pgSqlTypeToColumnType(sqlType) {
|
|
4
4
|
const t = sqlType.toLowerCase();
|
|
5
5
|
if (t.startsWith("varchar") || t === "text" || t.startsWith("char")) return "VARCHAR";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gscdump/engine",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.2",
|
|
5
5
|
"description": "Append-only Parquet/DuckDB storage engine + planner + adapters for the gscdump pipeline. Node + edge runtimes; opt-in heavy peers.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -46,6 +46,11 @@
|
|
|
46
46
|
"import": "./dist/schema.mjs",
|
|
47
47
|
"default": "./dist/schema.mjs"
|
|
48
48
|
},
|
|
49
|
+
"./sync-config": {
|
|
50
|
+
"types": "./dist/sync-config.d.mts",
|
|
51
|
+
"import": "./dist/sync-config.mjs",
|
|
52
|
+
"default": "./dist/sync-config.mjs"
|
|
53
|
+
},
|
|
49
54
|
"./ingest": {
|
|
50
55
|
"types": "./dist/ingest.d.mts",
|
|
51
56
|
"import": "./dist/ingest.mjs",
|
|
@@ -176,9 +181,9 @@
|
|
|
176
181
|
"dependencies": {
|
|
177
182
|
"drizzle-orm": "1.0.0-rc.3",
|
|
178
183
|
"proper-lockfile": "^4.1.2",
|
|
179
|
-
"@gscdump/contracts": "^1.4.
|
|
180
|
-
"
|
|
181
|
-
"gscdump": "^1.4.
|
|
184
|
+
"@gscdump/contracts": "^1.4.2",
|
|
185
|
+
"gscdump": "^1.4.2",
|
|
186
|
+
"@gscdump/lakehouse": "^1.4.2"
|
|
182
187
|
},
|
|
183
188
|
"devDependencies": {
|
|
184
189
|
"@duckdb/duckdb-wasm": "1.33.1-dev57.0",
|