refactor(base): drop prepared binding now that loader sql inlines uuids

This commit is contained in:
Philipinho
2026-04-23 12:39:33 +01:00
parent 378d17350c
commit cc47a6d65c
@@ -49,11 +49,8 @@ export class CollectionLoader {
// Bulk load via CREATE TABLE AS SELECT. JSONB extraction happens // Bulk load via CREATE TABLE AS SELECT. JSONB extraction happens
// server-side via the base_cell_* helpers; DuckDB streams typed // server-side via the base_cell_* helpers; DuckDB streams typed
// columns over COPY BINARY into its vectorized insert path. // columns over COPY BINARY into its vectorized insert path.
const sql = buildLoaderSql(specs); const sql = buildLoaderSql(specs, baseId, workspaceId);
const prepared = await connection.prepare(sql); await connection.run(sql);
prepared.bindVarchar(1, baseId);
prepared.bindVarchar(2, workspaceId);
await prepared.run();
// Release the PG connection held by the ATTACH — we're done with // Release the PG connection held by the ATTACH — we're done with
// Postgres; all subsequent queries run purely against the local table. // Postgres; all subsequent queries run purely against the local table.