Skip to content

Commit 95669e8

Browse files
committed
Addresses Phoebe's comment
1 parent e2873e7 commit 95669e8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

crates/bindings-typescript/src/server/runtime.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,12 @@ function makeTableView(
312312
const sequences = table.sequences.map(seq => {
313313
const col = rowType.value.elements[seq.column];
314314
const colType = col.algebraicType;
315-
let sequenceTrigger: any;
315+
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;
316321
switch (colType.tag) {
317322
case 'U8':
318323
case 'I8':

0 commit comments

Comments
 (0)