create-syncular-app 0.21.0 → 0.22.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-syncular-app",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "author": "Benjamin Kniffler",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,6 +1,6 @@
1
1
  // Generated by @syncular/typegen — DO NOT EDIT.
2
2
  // irVersion: 1
3
- // irHash: sha256:bc1a58e1aae968ebc7be7981d2bcc5f01f176719afab10e6b5b02f4bf1d2ec86
3
+ // irHash: sha256:ab70fac08a04de95b4922c5e1cddc06fd7a51cee15a2c79b17eb474f65e116d7
4
4
 
5
5
  export type SyqlRuntimeErrorCode =
6
6
  | 'SYQL_RUNTIME_MISSING_REQUIRED_INPUT'
@@ -146,7 +146,7 @@ function listTodosValidate(raw?: ListTodosParams): ListTodosParams {
146
146
  export const listTodosTables = ['todos'] as const;
147
147
 
148
148
  const listTodosStatements: (QueryRelationPlan & { bind: (params: ListTodosParams) => QueryValue[] })[] = [
149
- { sql: 'select id, list_id AS listId, title, done, position, updated_at_ms AS updatedAtMs from todos where todos.list_id = ? order by position, id', relations: [{"table":"todos","start":87,"end":92}], bind: (params) => [params.listId] },
149
+ { sql: 'select id, list_id AS "listId", title, done, position, updated_at_ms AS "updatedAtMs" from todos where todos.list_id = ? order by position, id', relations: [{"table":"todos","start":91,"end":96}], bind: (params) => [params.listId] },
150
150
  ];
151
151
  function listTodosSelect(raw: ListTodosParams): { sql: string; bind: QueryValue[] } {
152
152
  const params = listTodosValidate(raw);
@@ -165,9 +165,9 @@ export async function listTodos(client: QueryClient, params: ListTodosParams): P
165
165
 
166
166
  /** Revisioned reactive descriptor for `useQuery(listTodosQuery, params)`. */
167
167
  export const listTodosQuery: NamedQuery<ListTodosRow, ListTodosParams> = {
168
- id: 'sha256:bc1a58e1aae968ebc7be7981d2bcc5f01f176719afab10e6b5b02f4bf1d2ec86/listTodos',
168
+ id: 'sha256:ab70fac08a04de95b4922c5e1cddc06fd7a51cee15a2c79b17eb474f65e116d7/listTodos',
169
169
  hasParams: true,
170
- sql: 'select id, list_id AS listId, title, done, position, updated_at_ms AS updatedAtMs from todos where todos.list_id = ? order by position, id',
170
+ sql: 'select id, list_id AS "listId", title, done, position, updated_at_ms AS "updatedAtMs" from todos where todos.list_id = ? order by position, id',
171
171
  mapRow: listTodosMapRow,
172
172
  sqlFor: (params: ListTodosParams) => listTodosSelect(params).sql,
173
173
  tables: listTodosTables,
@@ -21,7 +21,7 @@ tauri = { version = "2", features = [] }
21
21
  # The syncular plugin from crates.io. `native-transport` gives the core its
22
22
  # real HTTP + WebSocket transport (ureq + tungstenite) inside the host
23
23
  # process — the webview never talks to the sync server directly.
24
- tauri-plugin-syncular = { version = "0.21.0", features = ["native-transport"] }
24
+ tauri-plugin-syncular = { version = "0.22.0", features = ["native-transport"] }
25
25
 
26
26
  [features]
27
27
  default = []
@@ -4,14 +4,14 @@
4
4
  {
5
5
  "name": "listTodos",
6
6
  "file": "list-todos.syql",
7
- "sourceSql": "select id, list_id AS listId, title, done, position, updated_at_ms AS updatedAtMs from todos\n where todos.list_id = :listId\n order by position, id",
8
- "sql": "select id, list_id AS listId, title, done, position, updated_at_ms AS updatedAtMs from todos\n where todos.list_id = :listId\n order by position, id",
9
- "positionalSql": "select id, list_id AS listId, title, done, position, updated_at_ms AS updatedAtMs from todos where todos.list_id = ? order by position, id",
7
+ "sourceSql": "select id, list_id AS \"listId\", title, done, position, updated_at_ms AS \"updatedAtMs\" from todos\n where todos.list_id = :listId\n order by position, id",
8
+ "sql": "select id, list_id AS \"listId\", title, done, position, updated_at_ms AS \"updatedAtMs\" from todos\n where todos.list_id = :listId\n order by position, id",
9
+ "positionalSql": "select id, list_id AS \"listId\", title, done, position, updated_at_ms AS \"updatedAtMs\" from todos where todos.list_id = ? order by position, id",
10
10
  "relations": [
11
11
  {
12
12
  "table": "todos",
13
- "start": 87,
14
- "end": 92
13
+ "start": 91,
14
+ "end": 96
15
15
  }
16
16
  ],
17
17
  "params": [
@@ -131,13 +131,13 @@
131
131
  "statements": [
132
132
  {
133
133
  "activationMask": 0,
134
- "sql": "select id, list_id AS listId, title, done, position, updated_at_ms AS updatedAtMs from todos\n where todos.list_id = :listId\n order by position, id",
135
- "positionalSql": "select id, list_id AS listId, title, done, position, updated_at_ms AS updatedAtMs from todos where todos.list_id = ? order by position, id",
134
+ "sql": "select id, list_id AS \"listId\", title, done, position, updated_at_ms AS \"updatedAtMs\" from todos\n where todos.list_id = :listId\n order by position, id",
135
+ "positionalSql": "select id, list_id AS \"listId\", title, done, position, updated_at_ms AS \"updatedAtMs\" from todos where todos.list_id = ? order by position, id",
136
136
  "relations": [
137
137
  {
138
138
  "table": "todos",
139
- "start": 87,
140
- "end": 92
139
+ "start": 91,
140
+ "end": 96
141
141
  }
142
142
  ],
143
143
  "binds": [