@pgflow/core 0.0.0-array-map-steps-302d00a8-20250922101336 → 0.0.0-test-snapshot-releases-8d5d9bc1-20250922101013

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.
Files changed (38) hide show
  1. package/README.md +1 -7
  2. package/package.json +2 -2
  3. package/dist/ATLAS.md +0 -32
  4. package/dist/CHANGELOG.md +0 -645
  5. package/dist/PLAN_race_condition_testing.md +0 -176
  6. package/dist/PgflowSqlClient.d.ts +0 -17
  7. package/dist/PgflowSqlClient.d.ts.map +0 -1
  8. package/dist/PgflowSqlClient.js +0 -70
  9. package/dist/README.md +0 -399
  10. package/dist/database-types.d.ts +0 -832
  11. package/dist/database-types.d.ts.map +0 -1
  12. package/dist/database-types.js +0 -8
  13. package/dist/index.d.ts +0 -4
  14. package/dist/index.d.ts.map +0 -1
  15. package/dist/index.js +0 -2
  16. package/dist/package.json +0 -32
  17. package/dist/supabase/migrations/20250429164909_pgflow_initial.sql +0 -579
  18. package/dist/supabase/migrations/20250517072017_pgflow_fix_poll_for_tasks_to_use_separate_statement_for_polling.sql +0 -101
  19. package/dist/supabase/migrations/20250609105135_pgflow_add_start_tasks_and_started_status.sql +0 -371
  20. package/dist/supabase/migrations/20250610180554_pgflow_add_set_vt_batch_and_use_it_in_start_tasks.sql +0 -127
  21. package/dist/supabase/migrations/20250614124241_pgflow_add_realtime.sql +0 -501
  22. package/dist/supabase/migrations/20250619195327_pgflow_fix_fail_task_missing_realtime_event.sql +0 -185
  23. package/dist/supabase/migrations/20250627090700_pgflow_fix_function_search_paths.sql +0 -6
  24. package/dist/supabase/migrations/20250707210212_pgflow_add_opt_start_delay.sql +0 -103
  25. package/dist/supabase/migrations/20250719205006_pgflow_worker_deprecation.sql +0 -2
  26. package/dist/supabase/migrations/20250912075001_pgflow_temp_pr1_schema.sql +0 -185
  27. package/dist/supabase/migrations/20250912080800_pgflow_temp_pr2_root_maps.sql +0 -95
  28. package/dist/supabase/migrations/20250912125339_pgflow_TEMP_task_spawning_optimization.sql +0 -146
  29. package/dist/supabase/migrations/20250916093518_pgflow_temp_add_cascade_complete.sql +0 -321
  30. package/dist/supabase/migrations/20250916142327_pgflow_temp_make_initial_tasks_nullable.sql +0 -624
  31. package/dist/supabase/migrations/20250916203905_pgflow_temp_handle_arrays_in_start_tasks.sql +0 -157
  32. package/dist/supabase/migrations/20250918042753_pgflow_temp_handle_map_output_aggregation.sql +0 -489
  33. package/dist/supabase/migrations/20250919101802_pgflow_temp_orphaned_messages_index.sql +0 -688
  34. package/dist/supabase/migrations/20250919135211_pgflow_temp_return_task_index_in_start_tasks.sql +0 -178
  35. package/dist/tsconfig.lib.tsbuildinfo +0 -1
  36. package/dist/types.d.ts +0 -95
  37. package/dist/types.d.ts.map +0 -1
  38. package/dist/types.js +0 -1
@@ -1,832 +0,0 @@
1
- export type Json = string | number | boolean | null | {
2
- [key: string]: Json | undefined;
3
- } | Json[];
4
- export type Database = {
5
- pgflow: {
6
- Tables: {
7
- deps: {
8
- Row: {
9
- created_at: string;
10
- dep_slug: string;
11
- flow_slug: string;
12
- step_slug: string;
13
- };
14
- Insert: {
15
- created_at?: string;
16
- dep_slug: string;
17
- flow_slug: string;
18
- step_slug: string;
19
- };
20
- Update: {
21
- created_at?: string;
22
- dep_slug?: string;
23
- flow_slug?: string;
24
- step_slug?: string;
25
- };
26
- Relationships: [
27
- {
28
- foreignKeyName: "deps_flow_slug_dep_slug_fkey";
29
- columns: ["flow_slug", "dep_slug"];
30
- isOneToOne: false;
31
- referencedRelation: "steps";
32
- referencedColumns: ["flow_slug", "step_slug"];
33
- },
34
- {
35
- foreignKeyName: "deps_flow_slug_fkey";
36
- columns: ["flow_slug"];
37
- isOneToOne: false;
38
- referencedRelation: "flows";
39
- referencedColumns: ["flow_slug"];
40
- },
41
- {
42
- foreignKeyName: "deps_flow_slug_step_slug_fkey";
43
- columns: ["flow_slug", "step_slug"];
44
- isOneToOne: false;
45
- referencedRelation: "steps";
46
- referencedColumns: ["flow_slug", "step_slug"];
47
- }
48
- ];
49
- };
50
- flows: {
51
- Row: {
52
- created_at: string;
53
- flow_slug: string;
54
- opt_base_delay: number;
55
- opt_max_attempts: number;
56
- opt_timeout: number;
57
- };
58
- Insert: {
59
- created_at?: string;
60
- flow_slug: string;
61
- opt_base_delay?: number;
62
- opt_max_attempts?: number;
63
- opt_timeout?: number;
64
- };
65
- Update: {
66
- created_at?: string;
67
- flow_slug?: string;
68
- opt_base_delay?: number;
69
- opt_max_attempts?: number;
70
- opt_timeout?: number;
71
- };
72
- Relationships: [];
73
- };
74
- runs: {
75
- Row: {
76
- completed_at: string | null;
77
- failed_at: string | null;
78
- flow_slug: string;
79
- input: Json;
80
- output: Json | null;
81
- remaining_steps: number;
82
- run_id: string;
83
- started_at: string;
84
- status: string;
85
- };
86
- Insert: {
87
- completed_at?: string | null;
88
- failed_at?: string | null;
89
- flow_slug: string;
90
- input: Json;
91
- output?: Json | null;
92
- remaining_steps?: number;
93
- run_id?: string;
94
- started_at?: string;
95
- status?: string;
96
- };
97
- Update: {
98
- completed_at?: string | null;
99
- failed_at?: string | null;
100
- flow_slug?: string;
101
- input?: Json;
102
- output?: Json | null;
103
- remaining_steps?: number;
104
- run_id?: string;
105
- started_at?: string;
106
- status?: string;
107
- };
108
- Relationships: [
109
- {
110
- foreignKeyName: "runs_flow_slug_fkey";
111
- columns: ["flow_slug"];
112
- isOneToOne: false;
113
- referencedRelation: "flows";
114
- referencedColumns: ["flow_slug"];
115
- }
116
- ];
117
- };
118
- step_states: {
119
- Row: {
120
- completed_at: string | null;
121
- created_at: string;
122
- error_message: string | null;
123
- failed_at: string | null;
124
- flow_slug: string;
125
- initial_tasks: number | null;
126
- remaining_deps: number;
127
- remaining_tasks: number | null;
128
- run_id: string;
129
- started_at: string | null;
130
- status: string;
131
- step_slug: string;
132
- };
133
- Insert: {
134
- completed_at?: string | null;
135
- created_at?: string;
136
- error_message?: string | null;
137
- failed_at?: string | null;
138
- flow_slug: string;
139
- initial_tasks?: number | null;
140
- remaining_deps?: number;
141
- remaining_tasks?: number | null;
142
- run_id: string;
143
- started_at?: string | null;
144
- status?: string;
145
- step_slug: string;
146
- };
147
- Update: {
148
- completed_at?: string | null;
149
- created_at?: string;
150
- error_message?: string | null;
151
- failed_at?: string | null;
152
- flow_slug?: string;
153
- initial_tasks?: number | null;
154
- remaining_deps?: number;
155
- remaining_tasks?: number | null;
156
- run_id?: string;
157
- started_at?: string | null;
158
- status?: string;
159
- step_slug?: string;
160
- };
161
- Relationships: [
162
- {
163
- foreignKeyName: "step_states_flow_slug_fkey";
164
- columns: ["flow_slug"];
165
- isOneToOne: false;
166
- referencedRelation: "flows";
167
- referencedColumns: ["flow_slug"];
168
- },
169
- {
170
- foreignKeyName: "step_states_flow_slug_step_slug_fkey";
171
- columns: ["flow_slug", "step_slug"];
172
- isOneToOne: false;
173
- referencedRelation: "steps";
174
- referencedColumns: ["flow_slug", "step_slug"];
175
- },
176
- {
177
- foreignKeyName: "step_states_run_id_fkey";
178
- columns: ["run_id"];
179
- isOneToOne: false;
180
- referencedRelation: "runs";
181
- referencedColumns: ["run_id"];
182
- }
183
- ];
184
- };
185
- step_tasks: {
186
- Row: {
187
- attempts_count: number;
188
- completed_at: string | null;
189
- error_message: string | null;
190
- failed_at: string | null;
191
- flow_slug: string;
192
- last_worker_id: string | null;
193
- message_id: number | null;
194
- output: Json | null;
195
- queued_at: string;
196
- run_id: string;
197
- started_at: string | null;
198
- status: string;
199
- step_slug: string;
200
- task_index: number;
201
- };
202
- Insert: {
203
- attempts_count?: number;
204
- completed_at?: string | null;
205
- error_message?: string | null;
206
- failed_at?: string | null;
207
- flow_slug: string;
208
- last_worker_id?: string | null;
209
- message_id?: number | null;
210
- output?: Json | null;
211
- queued_at?: string;
212
- run_id: string;
213
- started_at?: string | null;
214
- status?: string;
215
- step_slug: string;
216
- task_index?: number;
217
- };
218
- Update: {
219
- attempts_count?: number;
220
- completed_at?: string | null;
221
- error_message?: string | null;
222
- failed_at?: string | null;
223
- flow_slug?: string;
224
- last_worker_id?: string | null;
225
- message_id?: number | null;
226
- output?: Json | null;
227
- queued_at?: string;
228
- run_id?: string;
229
- started_at?: string | null;
230
- status?: string;
231
- step_slug?: string;
232
- task_index?: number;
233
- };
234
- Relationships: [
235
- {
236
- foreignKeyName: "step_tasks_flow_slug_fkey";
237
- columns: ["flow_slug"];
238
- isOneToOne: false;
239
- referencedRelation: "flows";
240
- referencedColumns: ["flow_slug"];
241
- },
242
- {
243
- foreignKeyName: "step_tasks_last_worker_id_fkey";
244
- columns: ["last_worker_id"];
245
- isOneToOne: false;
246
- referencedRelation: "workers";
247
- referencedColumns: ["worker_id"];
248
- },
249
- {
250
- foreignKeyName: "step_tasks_run_id_fkey";
251
- columns: ["run_id"];
252
- isOneToOne: false;
253
- referencedRelation: "runs";
254
- referencedColumns: ["run_id"];
255
- },
256
- {
257
- foreignKeyName: "step_tasks_run_id_step_slug_fkey";
258
- columns: ["run_id", "step_slug"];
259
- isOneToOne: false;
260
- referencedRelation: "step_states";
261
- referencedColumns: ["run_id", "step_slug"];
262
- }
263
- ];
264
- };
265
- steps: {
266
- Row: {
267
- created_at: string;
268
- deps_count: number;
269
- flow_slug: string;
270
- opt_base_delay: number | null;
271
- opt_max_attempts: number | null;
272
- opt_start_delay: number | null;
273
- opt_timeout: number | null;
274
- step_index: number;
275
- step_slug: string;
276
- step_type: string;
277
- };
278
- Insert: {
279
- created_at?: string;
280
- deps_count?: number;
281
- flow_slug: string;
282
- opt_base_delay?: number | null;
283
- opt_max_attempts?: number | null;
284
- opt_start_delay?: number | null;
285
- opt_timeout?: number | null;
286
- step_index?: number;
287
- step_slug: string;
288
- step_type?: string;
289
- };
290
- Update: {
291
- created_at?: string;
292
- deps_count?: number;
293
- flow_slug?: string;
294
- opt_base_delay?: number | null;
295
- opt_max_attempts?: number | null;
296
- opt_start_delay?: number | null;
297
- opt_timeout?: number | null;
298
- step_index?: number;
299
- step_slug?: string;
300
- step_type?: string;
301
- };
302
- Relationships: [
303
- {
304
- foreignKeyName: "steps_flow_slug_fkey";
305
- columns: ["flow_slug"];
306
- isOneToOne: false;
307
- referencedRelation: "flows";
308
- referencedColumns: ["flow_slug"];
309
- }
310
- ];
311
- };
312
- workers: {
313
- Row: {
314
- deprecated_at: string | null;
315
- function_name: string;
316
- last_heartbeat_at: string;
317
- queue_name: string;
318
- started_at: string;
319
- worker_id: string;
320
- };
321
- Insert: {
322
- deprecated_at?: string | null;
323
- function_name: string;
324
- last_heartbeat_at?: string;
325
- queue_name: string;
326
- started_at?: string;
327
- worker_id: string;
328
- };
329
- Update: {
330
- deprecated_at?: string | null;
331
- function_name?: string;
332
- last_heartbeat_at?: string;
333
- queue_name?: string;
334
- started_at?: string;
335
- worker_id?: string;
336
- };
337
- Relationships: [];
338
- };
339
- };
340
- Views: {
341
- [_ in never]: never;
342
- };
343
- Functions: {
344
- add_step: {
345
- Args: {
346
- flow_slug: string;
347
- step_slug: string;
348
- deps_slugs?: string[];
349
- max_attempts?: number;
350
- base_delay?: number;
351
- timeout?: number;
352
- start_delay?: number;
353
- step_type?: string;
354
- };
355
- Returns: {
356
- created_at: string;
357
- deps_count: number;
358
- flow_slug: string;
359
- opt_base_delay: number | null;
360
- opt_max_attempts: number | null;
361
- opt_start_delay: number | null;
362
- opt_timeout: number | null;
363
- step_index: number;
364
- step_slug: string;
365
- step_type: string;
366
- };
367
- };
368
- calculate_retry_delay: {
369
- Args: {
370
- base_delay: number;
371
- attempts_count: number;
372
- };
373
- Returns: number;
374
- };
375
- cascade_complete_taskless_steps: {
376
- Args: {
377
- run_id: string;
378
- };
379
- Returns: number;
380
- };
381
- complete_task: {
382
- Args: {
383
- run_id: string;
384
- step_slug: string;
385
- task_index: number;
386
- output: Json;
387
- };
388
- Returns: {
389
- attempts_count: number;
390
- completed_at: string | null;
391
- error_message: string | null;
392
- failed_at: string | null;
393
- flow_slug: string;
394
- last_worker_id: string | null;
395
- message_id: number | null;
396
- output: Json | null;
397
- queued_at: string;
398
- run_id: string;
399
- started_at: string | null;
400
- status: string;
401
- step_slug: string;
402
- task_index: number;
403
- }[];
404
- };
405
- create_flow: {
406
- Args: {
407
- flow_slug: string;
408
- max_attempts?: number;
409
- base_delay?: number;
410
- timeout?: number;
411
- };
412
- Returns: {
413
- created_at: string;
414
- flow_slug: string;
415
- opt_base_delay: number;
416
- opt_max_attempts: number;
417
- opt_timeout: number;
418
- };
419
- };
420
- fail_task: {
421
- Args: {
422
- run_id: string;
423
- step_slug: string;
424
- task_index: number;
425
- error_message: string;
426
- };
427
- Returns: {
428
- attempts_count: number;
429
- completed_at: string | null;
430
- error_message: string | null;
431
- failed_at: string | null;
432
- flow_slug: string;
433
- last_worker_id: string | null;
434
- message_id: number | null;
435
- output: Json | null;
436
- queued_at: string;
437
- run_id: string;
438
- started_at: string | null;
439
- status: string;
440
- step_slug: string;
441
- task_index: number;
442
- }[];
443
- };
444
- get_run_with_states: {
445
- Args: {
446
- run_id: string;
447
- };
448
- Returns: Json;
449
- };
450
- is_valid_slug: {
451
- Args: {
452
- slug: string;
453
- };
454
- Returns: boolean;
455
- };
456
- maybe_complete_run: {
457
- Args: {
458
- run_id: string;
459
- };
460
- Returns: undefined;
461
- };
462
- poll_for_tasks: {
463
- Args: {
464
- queue_name: string;
465
- vt: number;
466
- qty: number;
467
- max_poll_seconds?: number;
468
- poll_interval_ms?: number;
469
- };
470
- Returns: Database["pgflow"]["CompositeTypes"]["step_task_record"][];
471
- };
472
- read_with_poll: {
473
- Args: {
474
- queue_name: string;
475
- vt: number;
476
- qty: number;
477
- max_poll_seconds?: number;
478
- poll_interval_ms?: number;
479
- conditional?: Json;
480
- };
481
- Returns: Database["pgmq"]["CompositeTypes"]["message_record"][];
482
- };
483
- set_vt_batch: {
484
- Args: {
485
- queue_name: string;
486
- msg_ids: number[];
487
- vt_offsets: number[];
488
- };
489
- Returns: Database["pgmq"]["CompositeTypes"]["message_record"][];
490
- };
491
- start_flow: {
492
- Args: {
493
- flow_slug: string;
494
- input: Json;
495
- run_id?: string;
496
- };
497
- Returns: {
498
- completed_at: string | null;
499
- failed_at: string | null;
500
- flow_slug: string;
501
- input: Json;
502
- output: Json | null;
503
- remaining_steps: number;
504
- run_id: string;
505
- started_at: string;
506
- status: string;
507
- }[];
508
- };
509
- start_flow_with_states: {
510
- Args: {
511
- flow_slug: string;
512
- input: Json;
513
- run_id?: string;
514
- };
515
- Returns: Json;
516
- };
517
- start_ready_steps: {
518
- Args: {
519
- run_id: string;
520
- };
521
- Returns: undefined;
522
- };
523
- start_tasks: {
524
- Args: {
525
- flow_slug: string;
526
- msg_ids: number[];
527
- worker_id: string;
528
- };
529
- Returns: Database["pgflow"]["CompositeTypes"]["step_task_record"][];
530
- };
531
- };
532
- Enums: {
533
- [_ in never]: never;
534
- };
535
- CompositeTypes: {
536
- step_task_record: {
537
- flow_slug: string | null;
538
- run_id: string | null;
539
- step_slug: string | null;
540
- input: Json | null;
541
- msg_id: number | null;
542
- task_index: number | null;
543
- };
544
- };
545
- };
546
- pgmq: {
547
- Tables: {
548
- meta: {
549
- Row: {
550
- created_at: string;
551
- is_partitioned: boolean;
552
- is_unlogged: boolean;
553
- queue_name: string;
554
- };
555
- Insert: {
556
- created_at?: string;
557
- is_partitioned: boolean;
558
- is_unlogged: boolean;
559
- queue_name: string;
560
- };
561
- Update: {
562
- created_at?: string;
563
- is_partitioned?: boolean;
564
- is_unlogged?: boolean;
565
- queue_name?: string;
566
- };
567
- Relationships: [];
568
- };
569
- };
570
- Views: {
571
- [_ in never]: never;
572
- };
573
- Functions: {
574
- _belongs_to_pgmq: {
575
- Args: {
576
- table_name: string;
577
- };
578
- Returns: boolean;
579
- };
580
- _ensure_pg_partman_installed: {
581
- Args: Record<PropertyKey, never>;
582
- Returns: undefined;
583
- };
584
- _get_partition_col: {
585
- Args: {
586
- partition_interval: string;
587
- };
588
- Returns: string;
589
- };
590
- _get_pg_partman_major_version: {
591
- Args: Record<PropertyKey, never>;
592
- Returns: number;
593
- };
594
- _get_pg_partman_schema: {
595
- Args: Record<PropertyKey, never>;
596
- Returns: string;
597
- };
598
- archive: {
599
- Args: {
600
- queue_name: string;
601
- msg_id: number;
602
- } | {
603
- queue_name: string;
604
- msg_ids: number[];
605
- };
606
- Returns: boolean;
607
- };
608
- convert_archive_partitioned: {
609
- Args: {
610
- table_name: string;
611
- partition_interval?: string;
612
- retention_interval?: string;
613
- leading_partition?: number;
614
- };
615
- Returns: undefined;
616
- };
617
- create: {
618
- Args: {
619
- queue_name: string;
620
- };
621
- Returns: undefined;
622
- };
623
- create_non_partitioned: {
624
- Args: {
625
- queue_name: string;
626
- };
627
- Returns: undefined;
628
- };
629
- create_partitioned: {
630
- Args: {
631
- queue_name: string;
632
- partition_interval?: string;
633
- retention_interval?: string;
634
- };
635
- Returns: undefined;
636
- };
637
- create_unlogged: {
638
- Args: {
639
- queue_name: string;
640
- };
641
- Returns: undefined;
642
- };
643
- delete: {
644
- Args: {
645
- queue_name: string;
646
- msg_id: number;
647
- } | {
648
- queue_name: string;
649
- msg_ids: number[];
650
- };
651
- Returns: boolean;
652
- };
653
- detach_archive: {
654
- Args: {
655
- queue_name: string;
656
- };
657
- Returns: undefined;
658
- };
659
- drop_queue: {
660
- Args: {
661
- queue_name: string;
662
- };
663
- Returns: boolean;
664
- };
665
- format_table_name: {
666
- Args: {
667
- queue_name: string;
668
- prefix: string;
669
- };
670
- Returns: string;
671
- };
672
- list_queues: {
673
- Args: Record<PropertyKey, never>;
674
- Returns: Database["pgmq"]["CompositeTypes"]["queue_record"][];
675
- };
676
- metrics: {
677
- Args: {
678
- queue_name: string;
679
- };
680
- Returns: Database["pgmq"]["CompositeTypes"]["metrics_result"];
681
- };
682
- metrics_all: {
683
- Args: Record<PropertyKey, never>;
684
- Returns: Database["pgmq"]["CompositeTypes"]["metrics_result"][];
685
- };
686
- pop: {
687
- Args: {
688
- queue_name: string;
689
- };
690
- Returns: Database["pgmq"]["CompositeTypes"]["message_record"][];
691
- };
692
- purge_queue: {
693
- Args: {
694
- queue_name: string;
695
- };
696
- Returns: number;
697
- };
698
- read: {
699
- Args: {
700
- queue_name: string;
701
- vt: number;
702
- qty: number;
703
- };
704
- Returns: Database["pgmq"]["CompositeTypes"]["message_record"][];
705
- };
706
- read_with_poll: {
707
- Args: {
708
- queue_name: string;
709
- vt: number;
710
- qty: number;
711
- max_poll_seconds?: number;
712
- poll_interval_ms?: number;
713
- };
714
- Returns: Database["pgmq"]["CompositeTypes"]["message_record"][];
715
- };
716
- send: {
717
- Args: {
718
- queue_name: string;
719
- msg: Json;
720
- delay?: number;
721
- };
722
- Returns: number[];
723
- };
724
- send_batch: {
725
- Args: {
726
- queue_name: string;
727
- msgs: Json[];
728
- delay?: number;
729
- };
730
- Returns: number[];
731
- };
732
- set_vt: {
733
- Args: {
734
- queue_name: string;
735
- msg_id: number;
736
- vt: number;
737
- };
738
- Returns: Database["pgmq"]["CompositeTypes"]["message_record"][];
739
- };
740
- validate_queue_name: {
741
- Args: {
742
- queue_name: string;
743
- };
744
- Returns: undefined;
745
- };
746
- };
747
- Enums: {
748
- [_ in never]: never;
749
- };
750
- CompositeTypes: {
751
- message_record: {
752
- msg_id: number | null;
753
- read_ct: number | null;
754
- enqueued_at: string | null;
755
- vt: string | null;
756
- message: Json | null;
757
- };
758
- metrics_result: {
759
- queue_name: string | null;
760
- queue_length: number | null;
761
- newest_msg_age_sec: number | null;
762
- oldest_msg_age_sec: number | null;
763
- total_messages: number | null;
764
- scrape_time: string | null;
765
- };
766
- queue_record: {
767
- queue_name: string | null;
768
- is_partitioned: boolean | null;
769
- is_unlogged: boolean | null;
770
- created_at: string | null;
771
- };
772
- };
773
- };
774
- };
775
- type DefaultSchema = Database[Extract<keyof Database, "public">];
776
- export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
777
- schema: keyof Database;
778
- }, TableName extends DefaultSchemaTableNameOrOptions extends {
779
- schema: keyof Database;
780
- } ? keyof (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
781
- schema: keyof Database;
782
- } ? (Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & Database[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
783
- Row: infer R;
784
- } ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
785
- Row: infer R;
786
- } ? R : never : never;
787
- export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
788
- schema: keyof Database;
789
- }, TableName extends DefaultSchemaTableNameOrOptions extends {
790
- schema: keyof Database;
791
- } ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
792
- schema: keyof Database;
793
- } ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
794
- Insert: infer I;
795
- } ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
796
- Insert: infer I;
797
- } ? I : never : never;
798
- export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
799
- schema: keyof Database;
800
- }, TableName extends DefaultSchemaTableNameOrOptions extends {
801
- schema: keyof Database;
802
- } ? keyof Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
803
- schema: keyof Database;
804
- } ? Database[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
805
- Update: infer U;
806
- } ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
807
- Update: infer U;
808
- } ? U : never : never;
809
- export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
810
- schema: keyof Database;
811
- }, EnumName extends DefaultSchemaEnumNameOrOptions extends {
812
- schema: keyof Database;
813
- } ? keyof Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
814
- schema: keyof Database;
815
- } ? Database[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
816
- export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
817
- schema: keyof Database;
818
- }, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
819
- schema: keyof Database;
820
- } ? keyof Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
821
- schema: keyof Database;
822
- } ? Database[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
823
- export declare const Constants: {
824
- readonly pgflow: {
825
- readonly Enums: {};
826
- };
827
- readonly pgmq: {
828
- readonly Enums: {};
829
- };
830
- };
831
- export {};
832
- //# sourceMappingURL=database-types.d.ts.map