You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sed 's/@sqlite\.org\/sqlite-wasm/@sqliteai\/cloudsync-wasm/g' sqlite-wasm/README.md > sqlite-wasm/README.tmp
198
+
echo -e "# sqlite-sync WASM $(make version)\nThis README and the TypeScript types are from the [official SQLite wasm repository](https://github.com/sqlite/sqlite-wasm)\n\n$(cat sqlite-wasm/README.tmp)" > sqlite-wasm/README.md
if [[ "$VERSION" != "$LATEST" || "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]]; then
@@ -183,6 +246,18 @@ jobs:
183
246
fi
184
247
echo "❌ CLOUDSYNC_VERSION not found in cloudsync.h"
185
248
exit 1
249
+
250
+
- uses: actions/setup-node@v4
251
+
with:
252
+
node-version: '20.x'
253
+
registry-url: 'https://registry.npmjs.org'
254
+
255
+
- name: wasm publish to npmjs
256
+
if: steps.tag.outputs.version != ''
257
+
#use this version when the repo will become public run: npm publish --provenance --access public ./artifacts/cloudsync-wasm/sqlite-wasm/sqliteai-cloudsync-wasm-*-cloudsync-*.tgz
258
+
run: npm publish --access public ./artifacts/cloudsync-wasm/sqlite-wasm/sqliteai-cloudsync-wasm-*-cloudsync-*.tgz
// the affinity of a column is determined by the declared type of the column,
420
420
// according to the following rules in the order shown:
421
421
// 1. If the declared type contains the string "INT" then it is assigned INTEGER affinity.
422
-
sql=sqlite3_snprintf((int)blen, buffer, "SELECT count(*) FROM pragma_table_info('%w') WHERE pk=1 AND \"type\" LIKE \"%%INT%%\";", name);
422
+
sql=sqlite3_snprintf((int)blen, buffer, "SELECT count(*) FROM pragma_table_info('%w') WHERE pk=1 AND \"type\" LIKE '%%INT%%';", name);
423
423
sqlite3_int64count2=dbutils_int_select(db, sql);
424
424
if (count==count2) {
425
425
dbutils_context_result_error(context, "Table %s uses an single-column INTEGER primary key. For CRDT replication, primary keys must be globally unique. Consider using a TEXT primary key with UUIDs or ULID to avoid conflicts across nodes. If you understand the risk and still want to use this INTEGER primary key, set the third argument of the cloudsync_init function to 1 to skip this check.", name);
0 commit comments