@gscdump/engine-sqlite 0.21.2 → 0.22.1
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/index.d.mts +689 -2
- package/dist/index.mjs +27 -0
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -2246,6 +2246,693 @@ declare const schema: {
|
|
|
2246
2246
|
};
|
|
2247
2247
|
dialect: "sqlite";
|
|
2248
2248
|
}>;
|
|
2249
|
+
gsc_search_appearance_pages: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
2250
|
+
name: "gsc_search_appearance_pages";
|
|
2251
|
+
schema: undefined;
|
|
2252
|
+
columns: {
|
|
2253
|
+
clicks: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2254
|
+
name: string;
|
|
2255
|
+
tableName: "gsc_search_appearance_pages";
|
|
2256
|
+
dataType: "number";
|
|
2257
|
+
columnType: "SQLiteInteger";
|
|
2258
|
+
data: number;
|
|
2259
|
+
driverParam: number;
|
|
2260
|
+
notNull: true;
|
|
2261
|
+
hasDefault: true;
|
|
2262
|
+
isPrimaryKey: false;
|
|
2263
|
+
isAutoincrement: false;
|
|
2264
|
+
hasRuntimeDefault: false;
|
|
2265
|
+
enumValues: undefined;
|
|
2266
|
+
baseColumn: never;
|
|
2267
|
+
identity: undefined;
|
|
2268
|
+
generated: undefined;
|
|
2269
|
+
}, {}, {}>;
|
|
2270
|
+
impressions: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2271
|
+
name: string;
|
|
2272
|
+
tableName: "gsc_search_appearance_pages";
|
|
2273
|
+
dataType: "number";
|
|
2274
|
+
columnType: "SQLiteInteger";
|
|
2275
|
+
data: number;
|
|
2276
|
+
driverParam: number;
|
|
2277
|
+
notNull: true;
|
|
2278
|
+
hasDefault: true;
|
|
2279
|
+
isPrimaryKey: false;
|
|
2280
|
+
isAutoincrement: false;
|
|
2281
|
+
hasRuntimeDefault: false;
|
|
2282
|
+
enumValues: undefined;
|
|
2283
|
+
baseColumn: never;
|
|
2284
|
+
identity: undefined;
|
|
2285
|
+
generated: undefined;
|
|
2286
|
+
}, {}, {}>;
|
|
2287
|
+
ctr: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2288
|
+
name: string;
|
|
2289
|
+
tableName: "gsc_search_appearance_pages";
|
|
2290
|
+
dataType: "number";
|
|
2291
|
+
columnType: "SQLiteReal";
|
|
2292
|
+
data: number;
|
|
2293
|
+
driverParam: number;
|
|
2294
|
+
notNull: true;
|
|
2295
|
+
hasDefault: true;
|
|
2296
|
+
isPrimaryKey: false;
|
|
2297
|
+
isAutoincrement: false;
|
|
2298
|
+
hasRuntimeDefault: false;
|
|
2299
|
+
enumValues: undefined;
|
|
2300
|
+
baseColumn: never;
|
|
2301
|
+
identity: undefined;
|
|
2302
|
+
generated: undefined;
|
|
2303
|
+
}, {}, {}>;
|
|
2304
|
+
position: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2305
|
+
name: string;
|
|
2306
|
+
tableName: "gsc_search_appearance_pages";
|
|
2307
|
+
dataType: "number";
|
|
2308
|
+
columnType: "SQLiteReal";
|
|
2309
|
+
data: number;
|
|
2310
|
+
driverParam: number;
|
|
2311
|
+
notNull: true;
|
|
2312
|
+
hasDefault: true;
|
|
2313
|
+
isPrimaryKey: false;
|
|
2314
|
+
isAutoincrement: false;
|
|
2315
|
+
hasRuntimeDefault: false;
|
|
2316
|
+
enumValues: undefined;
|
|
2317
|
+
baseColumn: never;
|
|
2318
|
+
identity: undefined;
|
|
2319
|
+
generated: undefined;
|
|
2320
|
+
}, {}, {}>;
|
|
2321
|
+
sum_position: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2322
|
+
name: string;
|
|
2323
|
+
tableName: "gsc_search_appearance_pages";
|
|
2324
|
+
dataType: "number";
|
|
2325
|
+
columnType: "SQLiteReal";
|
|
2326
|
+
data: number;
|
|
2327
|
+
driverParam: number;
|
|
2328
|
+
notNull: true;
|
|
2329
|
+
hasDefault: true;
|
|
2330
|
+
isPrimaryKey: false;
|
|
2331
|
+
isAutoincrement: false;
|
|
2332
|
+
hasRuntimeDefault: false;
|
|
2333
|
+
enumValues: undefined;
|
|
2334
|
+
baseColumn: never;
|
|
2335
|
+
identity: undefined;
|
|
2336
|
+
generated: undefined;
|
|
2337
|
+
}, {}, {}>;
|
|
2338
|
+
searchAppearance: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2339
|
+
name: "searchAppearance";
|
|
2340
|
+
tableName: "gsc_search_appearance_pages";
|
|
2341
|
+
dataType: "string";
|
|
2342
|
+
columnType: "SQLiteText";
|
|
2343
|
+
data: string;
|
|
2344
|
+
driverParam: string;
|
|
2345
|
+
notNull: true;
|
|
2346
|
+
hasDefault: false;
|
|
2347
|
+
isPrimaryKey: false;
|
|
2348
|
+
isAutoincrement: false;
|
|
2349
|
+
hasRuntimeDefault: false;
|
|
2350
|
+
enumValues: [string, ...string[]];
|
|
2351
|
+
baseColumn: never;
|
|
2352
|
+
identity: undefined;
|
|
2353
|
+
generated: undefined;
|
|
2354
|
+
}, {}, {
|
|
2355
|
+
length: number | undefined;
|
|
2356
|
+
}>;
|
|
2357
|
+
url: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2358
|
+
name: "url";
|
|
2359
|
+
tableName: "gsc_search_appearance_pages";
|
|
2360
|
+
dataType: "string";
|
|
2361
|
+
columnType: "SQLiteText";
|
|
2362
|
+
data: string;
|
|
2363
|
+
driverParam: string;
|
|
2364
|
+
notNull: true;
|
|
2365
|
+
hasDefault: false;
|
|
2366
|
+
isPrimaryKey: false;
|
|
2367
|
+
isAutoincrement: false;
|
|
2368
|
+
hasRuntimeDefault: false;
|
|
2369
|
+
enumValues: [string, ...string[]];
|
|
2370
|
+
baseColumn: never;
|
|
2371
|
+
identity: undefined;
|
|
2372
|
+
generated: undefined;
|
|
2373
|
+
}, {}, {
|
|
2374
|
+
length: number | undefined;
|
|
2375
|
+
}>;
|
|
2376
|
+
id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2377
|
+
name: any;
|
|
2378
|
+
tableName: "gsc_search_appearance_pages";
|
|
2379
|
+
dataType: any;
|
|
2380
|
+
columnType: any;
|
|
2381
|
+
data: any;
|
|
2382
|
+
driverParam: any;
|
|
2383
|
+
notNull: false;
|
|
2384
|
+
hasDefault: false;
|
|
2385
|
+
isPrimaryKey: false;
|
|
2386
|
+
isAutoincrement: false;
|
|
2387
|
+
hasRuntimeDefault: false;
|
|
2388
|
+
enumValues: any;
|
|
2389
|
+
baseColumn: never;
|
|
2390
|
+
identity: undefined;
|
|
2391
|
+
generated: undefined;
|
|
2392
|
+
}, {}, {
|
|
2393
|
+
[x: string]: any;
|
|
2394
|
+
[x: number]: any;
|
|
2395
|
+
[x: symbol]: any;
|
|
2396
|
+
}>;
|
|
2397
|
+
site_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2398
|
+
name: any;
|
|
2399
|
+
tableName: "gsc_search_appearance_pages";
|
|
2400
|
+
dataType: any;
|
|
2401
|
+
columnType: any;
|
|
2402
|
+
data: any;
|
|
2403
|
+
driverParam: any;
|
|
2404
|
+
notNull: false;
|
|
2405
|
+
hasDefault: false;
|
|
2406
|
+
isPrimaryKey: false;
|
|
2407
|
+
isAutoincrement: false;
|
|
2408
|
+
hasRuntimeDefault: false;
|
|
2409
|
+
enumValues: any;
|
|
2410
|
+
baseColumn: never;
|
|
2411
|
+
identity: undefined;
|
|
2412
|
+
generated: undefined;
|
|
2413
|
+
}, {}, {
|
|
2414
|
+
[x: string]: any;
|
|
2415
|
+
[x: number]: any;
|
|
2416
|
+
[x: symbol]: any;
|
|
2417
|
+
}>;
|
|
2418
|
+
date: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2419
|
+
name: any;
|
|
2420
|
+
tableName: "gsc_search_appearance_pages";
|
|
2421
|
+
dataType: any;
|
|
2422
|
+
columnType: any;
|
|
2423
|
+
data: any;
|
|
2424
|
+
driverParam: any;
|
|
2425
|
+
notNull: false;
|
|
2426
|
+
hasDefault: false;
|
|
2427
|
+
isPrimaryKey: false;
|
|
2428
|
+
isAutoincrement: false;
|
|
2429
|
+
hasRuntimeDefault: false;
|
|
2430
|
+
enumValues: any;
|
|
2431
|
+
baseColumn: never;
|
|
2432
|
+
identity: undefined;
|
|
2433
|
+
generated: undefined;
|
|
2434
|
+
}, {}, {
|
|
2435
|
+
[x: string]: any;
|
|
2436
|
+
[x: number]: any;
|
|
2437
|
+
[x: symbol]: any;
|
|
2438
|
+
}>;
|
|
2439
|
+
created_at: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2440
|
+
name: string;
|
|
2441
|
+
tableName: "gsc_search_appearance_pages";
|
|
2442
|
+
dataType: "number";
|
|
2443
|
+
columnType: "SQLiteInteger";
|
|
2444
|
+
data: number;
|
|
2445
|
+
driverParam: number;
|
|
2446
|
+
notNull: false;
|
|
2447
|
+
hasDefault: true;
|
|
2448
|
+
isPrimaryKey: false;
|
|
2449
|
+
isAutoincrement: false;
|
|
2450
|
+
hasRuntimeDefault: false;
|
|
2451
|
+
enumValues: undefined;
|
|
2452
|
+
baseColumn: never;
|
|
2453
|
+
identity: undefined;
|
|
2454
|
+
generated: undefined;
|
|
2455
|
+
}, {}, {}>;
|
|
2456
|
+
};
|
|
2457
|
+
dialect: "sqlite";
|
|
2458
|
+
}>;
|
|
2459
|
+
gsc_search_appearance_queries: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
2460
|
+
name: "gsc_search_appearance_queries";
|
|
2461
|
+
schema: undefined;
|
|
2462
|
+
columns: {
|
|
2463
|
+
clicks: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2464
|
+
name: string;
|
|
2465
|
+
tableName: "gsc_search_appearance_queries";
|
|
2466
|
+
dataType: "number";
|
|
2467
|
+
columnType: "SQLiteInteger";
|
|
2468
|
+
data: number;
|
|
2469
|
+
driverParam: number;
|
|
2470
|
+
notNull: true;
|
|
2471
|
+
hasDefault: true;
|
|
2472
|
+
isPrimaryKey: false;
|
|
2473
|
+
isAutoincrement: false;
|
|
2474
|
+
hasRuntimeDefault: false;
|
|
2475
|
+
enumValues: undefined;
|
|
2476
|
+
baseColumn: never;
|
|
2477
|
+
identity: undefined;
|
|
2478
|
+
generated: undefined;
|
|
2479
|
+
}, {}, {}>;
|
|
2480
|
+
impressions: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2481
|
+
name: string;
|
|
2482
|
+
tableName: "gsc_search_appearance_queries";
|
|
2483
|
+
dataType: "number";
|
|
2484
|
+
columnType: "SQLiteInteger";
|
|
2485
|
+
data: number;
|
|
2486
|
+
driverParam: number;
|
|
2487
|
+
notNull: true;
|
|
2488
|
+
hasDefault: true;
|
|
2489
|
+
isPrimaryKey: false;
|
|
2490
|
+
isAutoincrement: false;
|
|
2491
|
+
hasRuntimeDefault: false;
|
|
2492
|
+
enumValues: undefined;
|
|
2493
|
+
baseColumn: never;
|
|
2494
|
+
identity: undefined;
|
|
2495
|
+
generated: undefined;
|
|
2496
|
+
}, {}, {}>;
|
|
2497
|
+
ctr: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2498
|
+
name: string;
|
|
2499
|
+
tableName: "gsc_search_appearance_queries";
|
|
2500
|
+
dataType: "number";
|
|
2501
|
+
columnType: "SQLiteReal";
|
|
2502
|
+
data: number;
|
|
2503
|
+
driverParam: number;
|
|
2504
|
+
notNull: true;
|
|
2505
|
+
hasDefault: true;
|
|
2506
|
+
isPrimaryKey: false;
|
|
2507
|
+
isAutoincrement: false;
|
|
2508
|
+
hasRuntimeDefault: false;
|
|
2509
|
+
enumValues: undefined;
|
|
2510
|
+
baseColumn: never;
|
|
2511
|
+
identity: undefined;
|
|
2512
|
+
generated: undefined;
|
|
2513
|
+
}, {}, {}>;
|
|
2514
|
+
position: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2515
|
+
name: string;
|
|
2516
|
+
tableName: "gsc_search_appearance_queries";
|
|
2517
|
+
dataType: "number";
|
|
2518
|
+
columnType: "SQLiteReal";
|
|
2519
|
+
data: number;
|
|
2520
|
+
driverParam: number;
|
|
2521
|
+
notNull: true;
|
|
2522
|
+
hasDefault: true;
|
|
2523
|
+
isPrimaryKey: false;
|
|
2524
|
+
isAutoincrement: false;
|
|
2525
|
+
hasRuntimeDefault: false;
|
|
2526
|
+
enumValues: undefined;
|
|
2527
|
+
baseColumn: never;
|
|
2528
|
+
identity: undefined;
|
|
2529
|
+
generated: undefined;
|
|
2530
|
+
}, {}, {}>;
|
|
2531
|
+
sum_position: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2532
|
+
name: string;
|
|
2533
|
+
tableName: "gsc_search_appearance_queries";
|
|
2534
|
+
dataType: "number";
|
|
2535
|
+
columnType: "SQLiteReal";
|
|
2536
|
+
data: number;
|
|
2537
|
+
driverParam: number;
|
|
2538
|
+
notNull: true;
|
|
2539
|
+
hasDefault: true;
|
|
2540
|
+
isPrimaryKey: false;
|
|
2541
|
+
isAutoincrement: false;
|
|
2542
|
+
hasRuntimeDefault: false;
|
|
2543
|
+
enumValues: undefined;
|
|
2544
|
+
baseColumn: never;
|
|
2545
|
+
identity: undefined;
|
|
2546
|
+
generated: undefined;
|
|
2547
|
+
}, {}, {}>;
|
|
2548
|
+
searchAppearance: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2549
|
+
name: "searchAppearance";
|
|
2550
|
+
tableName: "gsc_search_appearance_queries";
|
|
2551
|
+
dataType: "string";
|
|
2552
|
+
columnType: "SQLiteText";
|
|
2553
|
+
data: string;
|
|
2554
|
+
driverParam: string;
|
|
2555
|
+
notNull: true;
|
|
2556
|
+
hasDefault: false;
|
|
2557
|
+
isPrimaryKey: false;
|
|
2558
|
+
isAutoincrement: false;
|
|
2559
|
+
hasRuntimeDefault: false;
|
|
2560
|
+
enumValues: [string, ...string[]];
|
|
2561
|
+
baseColumn: never;
|
|
2562
|
+
identity: undefined;
|
|
2563
|
+
generated: undefined;
|
|
2564
|
+
}, {}, {
|
|
2565
|
+
length: number | undefined;
|
|
2566
|
+
}>;
|
|
2567
|
+
query: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2568
|
+
name: "query";
|
|
2569
|
+
tableName: "gsc_search_appearance_queries";
|
|
2570
|
+
dataType: "string";
|
|
2571
|
+
columnType: "SQLiteText";
|
|
2572
|
+
data: string;
|
|
2573
|
+
driverParam: string;
|
|
2574
|
+
notNull: true;
|
|
2575
|
+
hasDefault: false;
|
|
2576
|
+
isPrimaryKey: false;
|
|
2577
|
+
isAutoincrement: false;
|
|
2578
|
+
hasRuntimeDefault: false;
|
|
2579
|
+
enumValues: [string, ...string[]];
|
|
2580
|
+
baseColumn: never;
|
|
2581
|
+
identity: undefined;
|
|
2582
|
+
generated: undefined;
|
|
2583
|
+
}, {}, {
|
|
2584
|
+
length: number | undefined;
|
|
2585
|
+
}>;
|
|
2586
|
+
query_canonical: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2587
|
+
name: "query_canonical";
|
|
2588
|
+
tableName: "gsc_search_appearance_queries";
|
|
2589
|
+
dataType: "string";
|
|
2590
|
+
columnType: "SQLiteText";
|
|
2591
|
+
data: string;
|
|
2592
|
+
driverParam: string;
|
|
2593
|
+
notNull: false;
|
|
2594
|
+
hasDefault: false;
|
|
2595
|
+
isPrimaryKey: false;
|
|
2596
|
+
isAutoincrement: false;
|
|
2597
|
+
hasRuntimeDefault: false;
|
|
2598
|
+
enumValues: [string, ...string[]];
|
|
2599
|
+
baseColumn: never;
|
|
2600
|
+
identity: undefined;
|
|
2601
|
+
generated: undefined;
|
|
2602
|
+
}, {}, {
|
|
2603
|
+
length: number | undefined;
|
|
2604
|
+
}>;
|
|
2605
|
+
id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2606
|
+
name: any;
|
|
2607
|
+
tableName: "gsc_search_appearance_queries";
|
|
2608
|
+
dataType: any;
|
|
2609
|
+
columnType: any;
|
|
2610
|
+
data: any;
|
|
2611
|
+
driverParam: any;
|
|
2612
|
+
notNull: false;
|
|
2613
|
+
hasDefault: false;
|
|
2614
|
+
isPrimaryKey: false;
|
|
2615
|
+
isAutoincrement: false;
|
|
2616
|
+
hasRuntimeDefault: false;
|
|
2617
|
+
enumValues: any;
|
|
2618
|
+
baseColumn: never;
|
|
2619
|
+
identity: undefined;
|
|
2620
|
+
generated: undefined;
|
|
2621
|
+
}, {}, {
|
|
2622
|
+
[x: string]: any;
|
|
2623
|
+
[x: number]: any;
|
|
2624
|
+
[x: symbol]: any;
|
|
2625
|
+
}>;
|
|
2626
|
+
site_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2627
|
+
name: any;
|
|
2628
|
+
tableName: "gsc_search_appearance_queries";
|
|
2629
|
+
dataType: any;
|
|
2630
|
+
columnType: any;
|
|
2631
|
+
data: any;
|
|
2632
|
+
driverParam: any;
|
|
2633
|
+
notNull: false;
|
|
2634
|
+
hasDefault: false;
|
|
2635
|
+
isPrimaryKey: false;
|
|
2636
|
+
isAutoincrement: false;
|
|
2637
|
+
hasRuntimeDefault: false;
|
|
2638
|
+
enumValues: any;
|
|
2639
|
+
baseColumn: never;
|
|
2640
|
+
identity: undefined;
|
|
2641
|
+
generated: undefined;
|
|
2642
|
+
}, {}, {
|
|
2643
|
+
[x: string]: any;
|
|
2644
|
+
[x: number]: any;
|
|
2645
|
+
[x: symbol]: any;
|
|
2646
|
+
}>;
|
|
2647
|
+
date: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2648
|
+
name: any;
|
|
2649
|
+
tableName: "gsc_search_appearance_queries";
|
|
2650
|
+
dataType: any;
|
|
2651
|
+
columnType: any;
|
|
2652
|
+
data: any;
|
|
2653
|
+
driverParam: any;
|
|
2654
|
+
notNull: false;
|
|
2655
|
+
hasDefault: false;
|
|
2656
|
+
isPrimaryKey: false;
|
|
2657
|
+
isAutoincrement: false;
|
|
2658
|
+
hasRuntimeDefault: false;
|
|
2659
|
+
enumValues: any;
|
|
2660
|
+
baseColumn: never;
|
|
2661
|
+
identity: undefined;
|
|
2662
|
+
generated: undefined;
|
|
2663
|
+
}, {}, {
|
|
2664
|
+
[x: string]: any;
|
|
2665
|
+
[x: number]: any;
|
|
2666
|
+
[x: symbol]: any;
|
|
2667
|
+
}>;
|
|
2668
|
+
created_at: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2669
|
+
name: string;
|
|
2670
|
+
tableName: "gsc_search_appearance_queries";
|
|
2671
|
+
dataType: "number";
|
|
2672
|
+
columnType: "SQLiteInteger";
|
|
2673
|
+
data: number;
|
|
2674
|
+
driverParam: number;
|
|
2675
|
+
notNull: false;
|
|
2676
|
+
hasDefault: true;
|
|
2677
|
+
isPrimaryKey: false;
|
|
2678
|
+
isAutoincrement: false;
|
|
2679
|
+
hasRuntimeDefault: false;
|
|
2680
|
+
enumValues: undefined;
|
|
2681
|
+
baseColumn: never;
|
|
2682
|
+
identity: undefined;
|
|
2683
|
+
generated: undefined;
|
|
2684
|
+
}, {}, {}>;
|
|
2685
|
+
};
|
|
2686
|
+
dialect: "sqlite";
|
|
2687
|
+
}>;
|
|
2688
|
+
gsc_search_appearance_page_queries: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
2689
|
+
name: "gsc_search_appearance_page_queries";
|
|
2690
|
+
schema: undefined;
|
|
2691
|
+
columns: {
|
|
2692
|
+
clicks: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2693
|
+
name: string;
|
|
2694
|
+
tableName: "gsc_search_appearance_page_queries";
|
|
2695
|
+
dataType: "number";
|
|
2696
|
+
columnType: "SQLiteInteger";
|
|
2697
|
+
data: number;
|
|
2698
|
+
driverParam: number;
|
|
2699
|
+
notNull: true;
|
|
2700
|
+
hasDefault: true;
|
|
2701
|
+
isPrimaryKey: false;
|
|
2702
|
+
isAutoincrement: false;
|
|
2703
|
+
hasRuntimeDefault: false;
|
|
2704
|
+
enumValues: undefined;
|
|
2705
|
+
baseColumn: never;
|
|
2706
|
+
identity: undefined;
|
|
2707
|
+
generated: undefined;
|
|
2708
|
+
}, {}, {}>;
|
|
2709
|
+
impressions: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2710
|
+
name: string;
|
|
2711
|
+
tableName: "gsc_search_appearance_page_queries";
|
|
2712
|
+
dataType: "number";
|
|
2713
|
+
columnType: "SQLiteInteger";
|
|
2714
|
+
data: number;
|
|
2715
|
+
driverParam: number;
|
|
2716
|
+
notNull: true;
|
|
2717
|
+
hasDefault: true;
|
|
2718
|
+
isPrimaryKey: false;
|
|
2719
|
+
isAutoincrement: false;
|
|
2720
|
+
hasRuntimeDefault: false;
|
|
2721
|
+
enumValues: undefined;
|
|
2722
|
+
baseColumn: never;
|
|
2723
|
+
identity: undefined;
|
|
2724
|
+
generated: undefined;
|
|
2725
|
+
}, {}, {}>;
|
|
2726
|
+
ctr: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2727
|
+
name: string;
|
|
2728
|
+
tableName: "gsc_search_appearance_page_queries";
|
|
2729
|
+
dataType: "number";
|
|
2730
|
+
columnType: "SQLiteReal";
|
|
2731
|
+
data: number;
|
|
2732
|
+
driverParam: number;
|
|
2733
|
+
notNull: true;
|
|
2734
|
+
hasDefault: true;
|
|
2735
|
+
isPrimaryKey: false;
|
|
2736
|
+
isAutoincrement: false;
|
|
2737
|
+
hasRuntimeDefault: false;
|
|
2738
|
+
enumValues: undefined;
|
|
2739
|
+
baseColumn: never;
|
|
2740
|
+
identity: undefined;
|
|
2741
|
+
generated: undefined;
|
|
2742
|
+
}, {}, {}>;
|
|
2743
|
+
position: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2744
|
+
name: string;
|
|
2745
|
+
tableName: "gsc_search_appearance_page_queries";
|
|
2746
|
+
dataType: "number";
|
|
2747
|
+
columnType: "SQLiteReal";
|
|
2748
|
+
data: number;
|
|
2749
|
+
driverParam: number;
|
|
2750
|
+
notNull: true;
|
|
2751
|
+
hasDefault: true;
|
|
2752
|
+
isPrimaryKey: false;
|
|
2753
|
+
isAutoincrement: false;
|
|
2754
|
+
hasRuntimeDefault: false;
|
|
2755
|
+
enumValues: undefined;
|
|
2756
|
+
baseColumn: never;
|
|
2757
|
+
identity: undefined;
|
|
2758
|
+
generated: undefined;
|
|
2759
|
+
}, {}, {}>;
|
|
2760
|
+
sum_position: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2761
|
+
name: string;
|
|
2762
|
+
tableName: "gsc_search_appearance_page_queries";
|
|
2763
|
+
dataType: "number";
|
|
2764
|
+
columnType: "SQLiteReal";
|
|
2765
|
+
data: number;
|
|
2766
|
+
driverParam: number;
|
|
2767
|
+
notNull: true;
|
|
2768
|
+
hasDefault: true;
|
|
2769
|
+
isPrimaryKey: false;
|
|
2770
|
+
isAutoincrement: false;
|
|
2771
|
+
hasRuntimeDefault: false;
|
|
2772
|
+
enumValues: undefined;
|
|
2773
|
+
baseColumn: never;
|
|
2774
|
+
identity: undefined;
|
|
2775
|
+
generated: undefined;
|
|
2776
|
+
}, {}, {}>;
|
|
2777
|
+
searchAppearance: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2778
|
+
name: "searchAppearance";
|
|
2779
|
+
tableName: "gsc_search_appearance_page_queries";
|
|
2780
|
+
dataType: "string";
|
|
2781
|
+
columnType: "SQLiteText";
|
|
2782
|
+
data: string;
|
|
2783
|
+
driverParam: string;
|
|
2784
|
+
notNull: true;
|
|
2785
|
+
hasDefault: false;
|
|
2786
|
+
isPrimaryKey: false;
|
|
2787
|
+
isAutoincrement: false;
|
|
2788
|
+
hasRuntimeDefault: false;
|
|
2789
|
+
enumValues: [string, ...string[]];
|
|
2790
|
+
baseColumn: never;
|
|
2791
|
+
identity: undefined;
|
|
2792
|
+
generated: undefined;
|
|
2793
|
+
}, {}, {
|
|
2794
|
+
length: number | undefined;
|
|
2795
|
+
}>;
|
|
2796
|
+
url: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2797
|
+
name: "url";
|
|
2798
|
+
tableName: "gsc_search_appearance_page_queries";
|
|
2799
|
+
dataType: "string";
|
|
2800
|
+
columnType: "SQLiteText";
|
|
2801
|
+
data: string;
|
|
2802
|
+
driverParam: string;
|
|
2803
|
+
notNull: true;
|
|
2804
|
+
hasDefault: false;
|
|
2805
|
+
isPrimaryKey: false;
|
|
2806
|
+
isAutoincrement: false;
|
|
2807
|
+
hasRuntimeDefault: false;
|
|
2808
|
+
enumValues: [string, ...string[]];
|
|
2809
|
+
baseColumn: never;
|
|
2810
|
+
identity: undefined;
|
|
2811
|
+
generated: undefined;
|
|
2812
|
+
}, {}, {
|
|
2813
|
+
length: number | undefined;
|
|
2814
|
+
}>;
|
|
2815
|
+
query: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2816
|
+
name: "query";
|
|
2817
|
+
tableName: "gsc_search_appearance_page_queries";
|
|
2818
|
+
dataType: "string";
|
|
2819
|
+
columnType: "SQLiteText";
|
|
2820
|
+
data: string;
|
|
2821
|
+
driverParam: string;
|
|
2822
|
+
notNull: true;
|
|
2823
|
+
hasDefault: false;
|
|
2824
|
+
isPrimaryKey: false;
|
|
2825
|
+
isAutoincrement: false;
|
|
2826
|
+
hasRuntimeDefault: false;
|
|
2827
|
+
enumValues: [string, ...string[]];
|
|
2828
|
+
baseColumn: never;
|
|
2829
|
+
identity: undefined;
|
|
2830
|
+
generated: undefined;
|
|
2831
|
+
}, {}, {
|
|
2832
|
+
length: number | undefined;
|
|
2833
|
+
}>;
|
|
2834
|
+
query_canonical: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2835
|
+
name: "query_canonical";
|
|
2836
|
+
tableName: "gsc_search_appearance_page_queries";
|
|
2837
|
+
dataType: "string";
|
|
2838
|
+
columnType: "SQLiteText";
|
|
2839
|
+
data: string;
|
|
2840
|
+
driverParam: string;
|
|
2841
|
+
notNull: false;
|
|
2842
|
+
hasDefault: false;
|
|
2843
|
+
isPrimaryKey: false;
|
|
2844
|
+
isAutoincrement: false;
|
|
2845
|
+
hasRuntimeDefault: false;
|
|
2846
|
+
enumValues: [string, ...string[]];
|
|
2847
|
+
baseColumn: never;
|
|
2848
|
+
identity: undefined;
|
|
2849
|
+
generated: undefined;
|
|
2850
|
+
}, {}, {
|
|
2851
|
+
length: number | undefined;
|
|
2852
|
+
}>;
|
|
2853
|
+
id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2854
|
+
name: any;
|
|
2855
|
+
tableName: "gsc_search_appearance_page_queries";
|
|
2856
|
+
dataType: any;
|
|
2857
|
+
columnType: any;
|
|
2858
|
+
data: any;
|
|
2859
|
+
driverParam: any;
|
|
2860
|
+
notNull: false;
|
|
2861
|
+
hasDefault: false;
|
|
2862
|
+
isPrimaryKey: false;
|
|
2863
|
+
isAutoincrement: false;
|
|
2864
|
+
hasRuntimeDefault: false;
|
|
2865
|
+
enumValues: any;
|
|
2866
|
+
baseColumn: never;
|
|
2867
|
+
identity: undefined;
|
|
2868
|
+
generated: undefined;
|
|
2869
|
+
}, {}, {
|
|
2870
|
+
[x: string]: any;
|
|
2871
|
+
[x: number]: any;
|
|
2872
|
+
[x: symbol]: any;
|
|
2873
|
+
}>;
|
|
2874
|
+
site_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2875
|
+
name: any;
|
|
2876
|
+
tableName: "gsc_search_appearance_page_queries";
|
|
2877
|
+
dataType: any;
|
|
2878
|
+
columnType: any;
|
|
2879
|
+
data: any;
|
|
2880
|
+
driverParam: any;
|
|
2881
|
+
notNull: false;
|
|
2882
|
+
hasDefault: false;
|
|
2883
|
+
isPrimaryKey: false;
|
|
2884
|
+
isAutoincrement: false;
|
|
2885
|
+
hasRuntimeDefault: false;
|
|
2886
|
+
enumValues: any;
|
|
2887
|
+
baseColumn: never;
|
|
2888
|
+
identity: undefined;
|
|
2889
|
+
generated: undefined;
|
|
2890
|
+
}, {}, {
|
|
2891
|
+
[x: string]: any;
|
|
2892
|
+
[x: number]: any;
|
|
2893
|
+
[x: symbol]: any;
|
|
2894
|
+
}>;
|
|
2895
|
+
date: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2896
|
+
name: any;
|
|
2897
|
+
tableName: "gsc_search_appearance_page_queries";
|
|
2898
|
+
dataType: any;
|
|
2899
|
+
columnType: any;
|
|
2900
|
+
data: any;
|
|
2901
|
+
driverParam: any;
|
|
2902
|
+
notNull: false;
|
|
2903
|
+
hasDefault: false;
|
|
2904
|
+
isPrimaryKey: false;
|
|
2905
|
+
isAutoincrement: false;
|
|
2906
|
+
hasRuntimeDefault: false;
|
|
2907
|
+
enumValues: any;
|
|
2908
|
+
baseColumn: never;
|
|
2909
|
+
identity: undefined;
|
|
2910
|
+
generated: undefined;
|
|
2911
|
+
}, {}, {
|
|
2912
|
+
[x: string]: any;
|
|
2913
|
+
[x: number]: any;
|
|
2914
|
+
[x: symbol]: any;
|
|
2915
|
+
}>;
|
|
2916
|
+
created_at: import("drizzle-orm/sqlite-core").SQLiteColumn<{
|
|
2917
|
+
name: string;
|
|
2918
|
+
tableName: "gsc_search_appearance_page_queries";
|
|
2919
|
+
dataType: "number";
|
|
2920
|
+
columnType: "SQLiteInteger";
|
|
2921
|
+
data: number;
|
|
2922
|
+
driverParam: number;
|
|
2923
|
+
notNull: false;
|
|
2924
|
+
hasDefault: true;
|
|
2925
|
+
isPrimaryKey: false;
|
|
2926
|
+
isAutoincrement: false;
|
|
2927
|
+
hasRuntimeDefault: false;
|
|
2928
|
+
enumValues: undefined;
|
|
2929
|
+
baseColumn: never;
|
|
2930
|
+
identity: undefined;
|
|
2931
|
+
generated: undefined;
|
|
2932
|
+
}, {}, {}>;
|
|
2933
|
+
};
|
|
2934
|
+
dialect: "sqlite";
|
|
2935
|
+
}>;
|
|
2249
2936
|
gsc_hourly_pages: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
|
|
2250
2937
|
name: "gsc_hourly_pages";
|
|
2251
2938
|
schema: undefined;
|
|
@@ -2494,7 +3181,7 @@ declare function createSqliteInsightRunner<TSchema extends Record<string, unknow
|
|
|
2494
3181
|
* (one or both). This lets callers pass unbounded query-string params
|
|
2495
3182
|
* through without first normalizing them.
|
|
2496
3183
|
*/
|
|
2497
|
-
declare const scopeFor: (table: "gsc_pages" | "gsc_keywords" | "gsc_countries" | "gsc_devices" | "gsc_page_keywords" | "gsc_search_appearance" | "gsc_hourly_pages", opts: ScopedRunnerOptions) => TableScope, mergeScope: typeof import("@gscdump/engine/scope").mergeScope;
|
|
3184
|
+
declare const scopeFor: (table: "gsc_pages" | "gsc_keywords" | "gsc_countries" | "gsc_devices" | "gsc_page_keywords" | "gsc_search_appearance" | "gsc_search_appearance_pages" | "gsc_search_appearance_queries" | "gsc_search_appearance_page_queries" | "gsc_hourly_pages", opts: ScopedRunnerOptions) => TableScope, mergeScope: typeof import("@gscdump/engine/scope").mergeScope;
|
|
2498
3185
|
type SqliteQueryExecutor = SqliteRowExecutor;
|
|
2499
3186
|
interface EngineConfig {
|
|
2500
3187
|
executor: SqliteQueryExecutor;
|
|
@@ -3395,7 +4082,7 @@ interface CreateSqliteResolverAdapterOptions {
|
|
|
3395
4082
|
regex?: boolean;
|
|
3396
4083
|
}
|
|
3397
4084
|
declare function createSqliteResolverAdapter(options?: CreateSqliteResolverAdapterOptions): ResolverAdapter<TableKey>;
|
|
3398
|
-
declare const sqliteResolverAdapter: ResolverAdapter<"gsc_pages" | "gsc_keywords" | "gsc_countries" | "gsc_devices" | "gsc_page_keywords" | "gsc_search_appearance" | "gsc_hourly_pages">;
|
|
4085
|
+
declare const sqliteResolverAdapter: ResolverAdapter<"gsc_pages" | "gsc_keywords" | "gsc_countries" | "gsc_devices" | "gsc_page_keywords" | "gsc_search_appearance" | "gsc_search_appearance_pages" | "gsc_search_appearance_queries" | "gsc_search_appearance_page_queries" | "gsc_hourly_pages">;
|
|
3399
4086
|
/**
|
|
3400
4087
|
* One-shot probe that detects whether the host SQLite has a working REGEXP
|
|
3401
4088
|
* function. SQLite ships REGEXP as a no-op stub by default; D1, libsql, and
|
package/dist/index.mjs
CHANGED
|
@@ -126,6 +126,27 @@ const schema = {
|
|
|
126
126
|
searchAppearance: text("searchAppearance").notNull(),
|
|
127
127
|
...metricCols()
|
|
128
128
|
}),
|
|
129
|
+
gsc_search_appearance_pages: sqliteTable("gsc_search_appearance_pages", {
|
|
130
|
+
...baseCols(),
|
|
131
|
+
searchAppearance: text("searchAppearance").notNull(),
|
|
132
|
+
url: text("url").notNull(),
|
|
133
|
+
...metricCols()
|
|
134
|
+
}),
|
|
135
|
+
gsc_search_appearance_queries: sqliteTable("gsc_search_appearance_queries", {
|
|
136
|
+
...baseCols(),
|
|
137
|
+
searchAppearance: text("searchAppearance").notNull(),
|
|
138
|
+
query: text("query").notNull(),
|
|
139
|
+
query_canonical: text("query_canonical"),
|
|
140
|
+
...metricCols()
|
|
141
|
+
}),
|
|
142
|
+
gsc_search_appearance_page_queries: sqliteTable("gsc_search_appearance_page_queries", {
|
|
143
|
+
...baseCols(),
|
|
144
|
+
searchAppearance: text("searchAppearance").notNull(),
|
|
145
|
+
url: text("url").notNull(),
|
|
146
|
+
query: text("query").notNull(),
|
|
147
|
+
query_canonical: text("query_canonical"),
|
|
148
|
+
...metricCols()
|
|
149
|
+
}),
|
|
129
150
|
gsc_hourly_pages: sqliteTable("gsc_hourly_pages", {
|
|
130
151
|
...baseCols(),
|
|
131
152
|
url: text("url").notNull(),
|
|
@@ -140,6 +161,9 @@ const GSC_TABLE_TO_LOGICAL = {
|
|
|
140
161
|
gsc_devices: null,
|
|
141
162
|
gsc_page_keywords: "page_queries",
|
|
142
163
|
gsc_search_appearance: "search_appearance",
|
|
164
|
+
gsc_search_appearance_pages: "search_appearance_pages",
|
|
165
|
+
gsc_search_appearance_queries: "search_appearance_queries",
|
|
166
|
+
gsc_search_appearance_page_queries: "search_appearance_page_queries",
|
|
143
167
|
gsc_hourly_pages: "hourly_pages"
|
|
144
168
|
};
|
|
145
169
|
assertSchemaInSync({
|
|
@@ -183,6 +207,9 @@ function createSqliteResolverAdapter(options = {}) {
|
|
|
183
207
|
countries: "gsc_countries",
|
|
184
208
|
dates: "gsc_devices",
|
|
185
209
|
search_appearance: "gsc_search_appearance",
|
|
210
|
+
search_appearance_pages: "gsc_search_appearance_pages",
|
|
211
|
+
search_appearance_queries: "gsc_search_appearance_queries",
|
|
212
|
+
search_appearance_page_queries: "gsc_search_appearance_page_queries",
|
|
186
213
|
hourly_pages: "gsc_hourly_pages"
|
|
187
214
|
},
|
|
188
215
|
metricCast: "REAL",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gscdump/engine-sqlite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.22.1",
|
|
5
5
|
"description": "SQLite / D1 engine adapter for @gscdump/analysis — typed analytics over sqlite-proxy executors (Cloudflare D1, libsql).",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
"drizzle-orm": "^0.45.2"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"
|
|
48
|
-
"gscdump": "0.
|
|
47
|
+
"gscdump": "0.22.1",
|
|
48
|
+
"@gscdump/engine": "0.22.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"drizzle-orm": "^0.45.2",
|
|
52
|
-
"vitest": "^4.1.
|
|
52
|
+
"vitest": "^4.1.7"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "obuild",
|