@telorun/sql-sqlite 0.3.0 → 0.4.0

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.
package/README.md CHANGED
@@ -48,7 +48,9 @@ See [examples/](./examples/) for a list of working applications.
48
48
 
49
49
  ## Status
50
50
 
51
- Telo is under **active development**. The core runtime, module system, and standard library are functional, but the API surface — including YAML shapes — may change without notice. Not yet recommended for production use.
51
+ Telo is under heavy development. While it is pre-1.0, breaking changes ship in **minor** releases — manifest shapes, kind schemas, and APIs can change between versions. Pin your imports and expect to update manifests when you upgrade. The core runtime, module system, and standard library are functional, but Telo is not yet recommended for production use.
52
+
53
+ **1.0 lands when the Rust kernel reaches feature parity with the Node.js implementation** — that is the milestone that freezes the manifest contract across runtimes.
52
54
 
53
55
  ## The Meaning of Telo
54
56
 
@@ -12,11 +12,11 @@ interface SqliteConnectionManifest {
12
12
  }
13
13
  declare class SqliteConnection extends SqlConnectionBase {
14
14
  private readonly sqlite;
15
- constructor(db: Kysely<any>, sqlite: SqliteDb);
15
+ constructor(db: Kysely<any>, sqlite: SqliteDb, ctx: ResourceContext);
16
16
  /** The driver's native multi-statement entry point — kysely binds one
17
17
  * statement per call. */
18
18
  executeScript(sql: string): Promise<void>;
19
19
  }
20
20
  export declare function register(): void;
21
- export declare function create(resource: SqliteConnectionManifest, _ctx: ResourceContext): Promise<SqliteConnection>;
21
+ export declare function create(resource: SqliteConnectionManifest, ctx: ResourceContext): Promise<SqliteConnection>;
22
22
  export {};
@@ -11,8 +11,8 @@ const sqliteDialect = {
11
11
  };
12
12
  class SqliteConnection extends SqlConnectionBase {
13
13
  sqlite;
14
- constructor(db, sqlite) {
15
- super(db, sqliteDialect);
14
+ constructor(db, sqlite, ctx) {
15
+ super(db, sqliteDialect, ctx);
16
16
  this.sqlite = sqlite;
17
17
  }
18
18
  /** The driver's native multi-statement entry point — kysely binds one
@@ -58,10 +58,10 @@ async function openSqliteDatabase(file = ":memory:") {
58
58
  return openDatabase(file);
59
59
  }
60
60
  export function register() { }
61
- export async function create(resource, _ctx) {
61
+ export async function create(resource, ctx) {
62
62
  const sqlite = await openSqliteDatabase(resource.file ?? ":memory:");
63
63
  const db = new Kysely({
64
64
  dialect: new TransactionalSqliteDialect({ database: sqlite }),
65
65
  });
66
- return new SqliteConnection(db, sqlite);
66
+ return new SqliteConnection(db, sqlite, ctx);
67
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telorun/sql-sqlite",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Telo SqlSqlite.Connection — SQLite backend for the Sql.Connection abstract (better-sqlite3 / bun:sqlite, transactional DDL).",
5
5
  "keywords": [
6
6
  "telo",
@@ -36,14 +36,14 @@
36
36
  "dependencies": {
37
37
  "better-sqlite3": "^12.8.0",
38
38
  "kysely": "^0.28.15",
39
- "@telorun/sql": "0.10.0"
39
+ "@telorun/sql": "0.12.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/better-sqlite3": "^7.0.0",
43
43
  "@types/bun": "^1.3.10",
44
44
  "@types/node": "^20.0.0",
45
45
  "typescript": "^5.0.0",
46
- "@telorun/sdk": "0.58.0"
46
+ "@telorun/sdk": "0.67.0"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@telorun/sdk": "*"
@@ -23,8 +23,9 @@ class SqliteConnection extends SqlConnectionBase {
23
23
  constructor(
24
24
  db: Kysely<any>,
25
25
  private readonly sqlite: SqliteDb,
26
+ ctx: ResourceContext,
26
27
  ) {
27
- super(db, sqliteDialect);
28
+ super(db, sqliteDialect, ctx);
28
29
  }
29
30
 
30
31
  /** The driver's native multi-statement entry point — kysely binds one
@@ -78,11 +79,11 @@ export function register(): void {}
78
79
 
79
80
  export async function create(
80
81
  resource: SqliteConnectionManifest,
81
- _ctx: ResourceContext,
82
+ ctx: ResourceContext,
82
83
  ): Promise<SqliteConnection> {
83
84
  const sqlite = await openSqliteDatabase(resource.file ?? ":memory:");
84
85
  const db = new Kysely<any>({
85
86
  dialect: new TransactionalSqliteDialect({ database: sqlite }),
86
87
  });
87
- return new SqliteConnection(db, sqlite);
88
+ return new SqliteConnection(db, sqlite, ctx);
88
89
  }