@kernl-sdk/pg 0.1.24 → 0.1.26

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 (30) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +19 -0
  3. package/dist/__tests__/memory-integration.test.js +1 -1
  4. package/dist/pgvector/__tests__/handle.test.js +13 -13
  5. package/dist/pgvector/__tests__/integration/document.integration.test.js +21 -21
  6. package/dist/pgvector/__tests__/integration/edge.integration.test.js +32 -32
  7. package/dist/pgvector/__tests__/integration/filters.integration.test.js +5 -5
  8. package/dist/pgvector/__tests__/integration/lifecycle.integration.test.js +12 -12
  9. package/dist/pgvector/__tests__/integration/query.integration.test.d.ts +1 -1
  10. package/dist/pgvector/__tests__/integration/query.integration.test.js +51 -51
  11. package/dist/pgvector/__tests__/search.test.js +1 -1
  12. package/dist/pgvector/sql/__tests__/limit.test.js +20 -20
  13. package/dist/pgvector/sql/__tests__/query.test.js +17 -17
  14. package/dist/pgvector/sql/limit.js +2 -2
  15. package/dist/pgvector/sql/query.d.ts +1 -1
  16. package/dist/pgvector/sql/query.d.ts.map +1 -1
  17. package/dist/pgvector/sql/query.js +1 -1
  18. package/package.json +7 -7
  19. package/src/__tests__/memory-integration.test.ts +1 -1
  20. package/src/pgvector/__tests__/handle.test.ts +13 -13
  21. package/src/pgvector/__tests__/integration/document.integration.test.ts +21 -21
  22. package/src/pgvector/__tests__/integration/edge.integration.test.ts +32 -32
  23. package/src/pgvector/__tests__/integration/filters.integration.test.ts +5 -5
  24. package/src/pgvector/__tests__/integration/lifecycle.integration.test.ts +12 -12
  25. package/src/pgvector/__tests__/integration/query.integration.test.ts +51 -51
  26. package/src/pgvector/__tests__/search.test.ts +1 -1
  27. package/src/pgvector/sql/__tests__/limit.test.ts +20 -20
  28. package/src/pgvector/sql/__tests__/query.test.ts +17 -17
  29. package/src/pgvector/sql/limit.ts +2 -2
  30. package/src/pgvector/sql/query.ts +2 -2
@@ -7,13 +7,13 @@ import type { SQLClause } from "./select";
7
7
  * Codec for building sql LIMIT clause.
8
8
  */
9
9
  export const SQL_LIMIT: Codec<LimitInput, SQLClause> = {
10
- encode({ topK, offset, startIdx }) {
10
+ encode({ limit, offset, startIdx }) {
11
11
  const parts: string[] = [];
12
12
  const params: unknown[] = [];
13
13
  let idx = startIdx;
14
14
 
15
15
  parts.push(`LIMIT $${idx++}`);
16
- params.push(topK);
16
+ params.push(limit);
17
17
 
18
18
  if (offset > 0) {
19
19
  parts.push(`OFFSET $${idx++}`);
@@ -67,7 +67,7 @@ export function sqlize(query: SearchQuery, config: SqlizeConfig): SqlizedQuery {
67
67
  schema: config.schema,
68
68
  table: config.table,
69
69
  },
70
- limit: { topK: query.topK ?? 10, offset: query.offset ?? 0 },
70
+ limit: { limit: query.limit ?? 10, offset: query.offset ?? 0 },
71
71
  };
72
72
  }
73
73
 
@@ -106,7 +106,7 @@ export interface OrderInput {
106
106
  }
107
107
 
108
108
  export interface LimitInput {
109
- topK: number;
109
+ limit: number;
110
110
  offset: number;
111
111
  startIdx: number;
112
112
  }