File tree Expand file tree Collapse file tree 3 files changed +900
-969
lines changed
electric-db-collection/src Expand file tree Collapse file tree 3 files changed +900
-969
lines changed Original file line number Diff line number Diff line change 11import { ensureIndexForExpression } from "../indexes/auto-index.js"
22import { and , gt , lt } from "../query/index.js"
3+ import { Value } from "../query/ir.js"
34import {
45 createFilterFunctionFromExpression ,
56 createFilteredCallback ,
67} from "./change-events.js"
7- import { Value , type BasicExpression , type OrderBy } from "../query/ir.js"
8+ import type { BasicExpression , OrderBy } from "../query/ir.js"
89import type { BaseIndex } from "../indexes/base-index.js"
910import type { ChangeMessage } from "../types.js"
1011import type { CollectionImpl } from "./index.js"
@@ -153,7 +154,6 @@ export class CollectionSubscription {
153154 limit,
154155 minValue,
155156 } : RequestLimitedSnapshotOptions ) {
156- console . log ( "in requestLimitedSnapshot" )
157157 if ( ! limit ) throw new Error ( `limit is required` )
158158
159159 if ( ! this . orderByIndex ) {
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ export function compileSQL<T>(
3030
3131 // Serialize the values in the params array into PG formatted strings
3232 // and transform the array into a Record<string, string>
33- console . log ( "params" , params )
3433 const paramsRecord = params . reduce (
3534 ( acc , param , index ) => {
3635 acc [ `${ index + 1 } ` ] = serialize ( param )
@@ -59,7 +58,7 @@ function compileBasicExpression(
5958 case `val` :
6059 params . push ( exp . value )
6160 return `$${ params . length } `
62- case `ref` :
61+ case `ref` :
6362 // TODO: doesn't yet support JSON(B) values which could be accessed with nested props
6463 if ( exp . path . length !== 1 ) {
6564 throw new Error (
You can’t perform that action at this time.
0 commit comments