We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2873e7 commit 95669e8Copy full SHA for 95669e8
1 file changed
crates/bindings-typescript/src/server/runtime.ts
@@ -312,7 +312,12 @@ function makeTableView(
312
const sequences = table.sequences.map(seq => {
313
const col = rowType.value.elements[seq.column];
314
const colType = col.algebraicType;
315
- let sequenceTrigger: any;
+
316
+ // Determine the sentinel value which users will pass to as a placeholder
317
+ // to cause the sequence to advance.
318
+ // For small integer SATS types which fit in V8 `number`s, this is `0: number`,
319
+ // and for larger integer SATS types it's `0n: BigInt`.
320
+ let sequenceTrigger: bigint | number;
321
switch (colType.tag) {
322
case 'U8':
323
case 'I8':
0 commit comments