@lunora/d1 1.0.0-alpha.62 → 1.0.0-alpha.64

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.
@@ -36,6 +36,6 @@ declare const frameworkColumnDdl: () => ReadonlyArray<string>;
36
36
  * physical `id` column, `_creationTime` to its own, every other field to itself.
37
37
  */
38
38
  declare const columnRef: (field: string) => string;
39
- /** Physical index identifier — `&lt;table>_&lt;name>`, so two tables' like-named indexes don't collide in SQLite's flat index namespace. */
39
+ /** Physical index identifier — `<table>_<name>`, so two tables' like-named indexes don't collide in SQLite's flat index namespace. */
40
40
  declare const physicalIndexName: (tableName: string, indexName: string) => string;
41
41
  export { SqlAffinity, columnRef, frameworkColumnDdl, physicalIndexName, quoteIdentifier, sqlAffinityForKind };
package/dist/dialect.d.ts CHANGED
@@ -36,6 +36,6 @@ declare const frameworkColumnDdl: () => ReadonlyArray<string>;
36
36
  * physical `id` column, `_creationTime` to its own, every other field to itself.
37
37
  */
38
38
  declare const columnRef: (field: string) => string;
39
- /** Physical index identifier — `&lt;table>_&lt;name>`, so two tables' like-named indexes don't collide in SQLite's flat index namespace. */
39
+ /** Physical index identifier — `<table>_<name>`, so two tables' like-named indexes don't collide in SQLite's flat index namespace. */
40
40
  declare const physicalIndexName: (tableName: string, indexName: string) => string;
41
41
  export { SqlAffinity, columnRef, frameworkColumnDdl, physicalIndexName, quoteIdentifier, sqlAffinityForKind };
package/dist/index.d.mts CHANGED
@@ -11,11 +11,11 @@ type D1ContextDatabaseOptions = Omit<SqlCtxDbOptions, "dialect">;
11
11
  declare const createD1ContextDatabase: (options: D1ContextDatabaseOptions) => ReturnType<typeof createSqlCtxDb>;
12
12
  /** Auto-provision the schema's `.global()` tables in D1 (idempotent `CREATE TABLE IF NOT EXISTS`). */
13
13
  declare const runD1GlobalTableMigrations: (exec: SqlCtxExec, schema: SchemaLike) => Promise<void>;
14
- /** Materialize the `__agg_&lt;index>` companion tables for the schema's aggregate indexes. */
14
+ /** Materialize the `__agg_<index>` companion tables for the schema's aggregate indexes. */
15
15
  declare const runD1AggregateMigrations: (exec: SqlCtxExec, schema: SchemaLike) => Promise<void>;
16
- /** Materialize the `__rank_&lt;index>` companion tables for the schema's rank indexes. */
16
+ /** Materialize the `__rank_<index>` companion tables for the schema's rank indexes. */
17
17
  declare const runD1RankMigrations: (exec: SqlCtxExec, schema: SchemaLike) => Promise<void>;
18
- /** Materialize (and backfill) the `__fts_&lt;index>` fts5 shadow tables for the schema's search indexes. */
18
+ /** Materialize (and backfill) the `__fts_<index>` fts5 shadow tables for the schema's search indexes. */
19
19
  declare const runD1SearchMigrations: (exec: SqlCtxExec, schema: SchemaLike) => Promise<void>;
20
20
  /** Index existing rows into every search companion, including the `staged: true` ones migrations leave empty. */
21
21
  declare const backfillD1SearchIndexes: (exec: SqlCtxExec, schema: SchemaLike) => Promise<void>;
@@ -88,7 +88,7 @@ interface ImportGlobalArgs {
88
88
  /**
89
89
  * Optional direct exec handle to the same D1 database the writer targets.
90
90
  * When supplied, the conflict pre-probe issues a single
91
- * `SELECT 1 FROM &lt;table> WHERE id = ? LIMIT 1` against the row's declared
91
+ * `SELECT 1 FROM <table> WHERE id = ? LIMIT 1` against the row's declared
92
92
  * table instead of falling back to `writer.get(id)`, which scans every
93
93
  * global table looking for the id. Strongly recommended for large schemas
94
94
  * — the writer-fallback is O(N tables) per row.
package/dist/index.d.ts CHANGED
@@ -11,11 +11,11 @@ type D1ContextDatabaseOptions = Omit<SqlCtxDbOptions, "dialect">;
11
11
  declare const createD1ContextDatabase: (options: D1ContextDatabaseOptions) => ReturnType<typeof createSqlCtxDb>;
12
12
  /** Auto-provision the schema's `.global()` tables in D1 (idempotent `CREATE TABLE IF NOT EXISTS`). */
13
13
  declare const runD1GlobalTableMigrations: (exec: SqlCtxExec, schema: SchemaLike) => Promise<void>;
14
- /** Materialize the `__agg_&lt;index>` companion tables for the schema's aggregate indexes. */
14
+ /** Materialize the `__agg_<index>` companion tables for the schema's aggregate indexes. */
15
15
  declare const runD1AggregateMigrations: (exec: SqlCtxExec, schema: SchemaLike) => Promise<void>;
16
- /** Materialize the `__rank_&lt;index>` companion tables for the schema's rank indexes. */
16
+ /** Materialize the `__rank_<index>` companion tables for the schema's rank indexes. */
17
17
  declare const runD1RankMigrations: (exec: SqlCtxExec, schema: SchemaLike) => Promise<void>;
18
- /** Materialize (and backfill) the `__fts_&lt;index>` fts5 shadow tables for the schema's search indexes. */
18
+ /** Materialize (and backfill) the `__fts_<index>` fts5 shadow tables for the schema's search indexes. */
19
19
  declare const runD1SearchMigrations: (exec: SqlCtxExec, schema: SchemaLike) => Promise<void>;
20
20
  /** Index existing rows into every search companion, including the `staged: true` ones migrations leave empty. */
21
21
  declare const backfillD1SearchIndexes: (exec: SqlCtxExec, schema: SchemaLike) => Promise<void>;
@@ -88,7 +88,7 @@ interface ImportGlobalArgs {
88
88
  /**
89
89
  * Optional direct exec handle to the same D1 database the writer targets.
90
90
  * When supplied, the conflict pre-probe issues a single
91
- * `SELECT 1 FROM &lt;table> WHERE id = ? LIMIT 1` against the row's declared
91
+ * `SELECT 1 FROM <table> WHERE id = ? LIMIT 1` against the row's declared
92
92
  * table instead of falling back to `writer.get(id)`, which scans every
93
93
  * global table looking for the id. Strongly recommended for large schemas
94
94
  * — the writer-fallback is O(N tables) per row.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/d1",
3
- "version": "1.0.0-alpha.62",
3
+ "version": "1.0.0-alpha.64",
4
4
  "description": "D1 adapter for Lunora .global() tables, wrapping the Sessions API for read-your-writes",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -50,10 +50,10 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@lunora/errors": "1.0.0-alpha.13",
54
- "@lunora/platform": "1.0.0-alpha.5",
55
- "@lunora/shard-engine": "1.0.0-alpha.10",
56
- "@lunora/sql-store": "1.0.0-alpha.64",
53
+ "@lunora/errors": "1.0.0-alpha.14",
54
+ "@lunora/platform": "1.0.0-alpha.6",
55
+ "@lunora/shard-engine": "1.0.0-alpha.12",
56
+ "@lunora/sql-store": "1.0.0-alpha.66",
57
57
  "drizzle-orm": "^0.45.2"
58
58
  },
59
59
  "engines": {