Skip to content

Commit 849c61b

Browse files
committed
fix(minor): sqlitecloud to sqliteai
1 parent b26e8ad commit 849c61b

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ To use SQLiteSync, you need SQLite version 3.x or later.
1919
1. Clone the repository:
2020

2121
```bash
22-
git clone https://github.com/sqlitecloud/sqlitesync.git
22+
git clone https://github.com/sqliteai/sqlite-sync.git
2323
cd sqlitesync
2424
```
2525

src/cloudsync.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ int table_add_stmts (sqlite3 *db, cloudsync_table_context *table, int ncols) {
635635
if (rc != SQLITE_OK) goto cleanup;
636636

637637
// precompile the update rows from meta when pk changes
638-
// see https://github.com/sqlitecloud/cloudsync/blob/main/docs/PriKey.md for more details
638+
// see https://github.com/sqliteai/sqlite-sync/blob/main/docs/PriKey.md for more details
639639
sql = cloudsync_memory_mprintf("UPDATE OR REPLACE \"%w_cloudsync\" SET pk=?, db_version=?, col_version=1, seq=cloudsync_seq(), site_id=0 WHERE (pk=? AND col_name!='%s');", table->name, CLOUDSYNC_TOMBSTONE_VALUE);
640640
if (!sql) {rc = SQLITE_NOMEM; goto cleanup;}
641641
DEBUG_SQL("meta_update_move_stmt: %s", sql);
@@ -1763,7 +1763,7 @@ int local_update_move_meta (sqlite3 *db, cloudsync_table_context *table, const c
17631763
* from OLD.pk to NEW.pk gets a distinct `seq` to maintain proper versioning and ordering of changes.
17641764
*/
17651765

1766-
// see https://github.com/sqlitecloud/cloudsync/blob/main/docs/PriKey.md for more details
1766+
// see https://github.com/sqliteai/sqlite-sync/blob/main/docs/PriKey.md for more details
17671767
// pk2 is the old pk
17681768

17691769
sqlite3_stmt *vm = table->meta_update_move_stmt;
@@ -2437,7 +2437,7 @@ void cloudsync_update (sqlite3_context *context, int argc, sqlite3_value **argv)
24372437

24382438
// move non-sentinel metadata entries from OLD primary key to NEW primary key
24392439
// handles the case where some metadata is retained across primary key change
2440-
// see https://github.com/sqlitecloud/cloudsync/blob/main/docs/PriKey.md for more details
2440+
// see https://github.com/sqliteai/sqlite-sync/blob/main/docs/PriKey.md for more details
24412441
rc = local_update_move_meta(db, table, pk, pklen, oldpk, oldpklen, db_version);
24422442
if (rc != SQLITE_OK) goto cleanup;
24432443

src/vtab.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ int cloudsync_changesvtab_rowid (sqlite3_vtab_cursor *cursor, sqlite3_int64 *row
462462
sqlite3_int64 seq = sqlite3_column_int64(c->vm, COL_SEQ_INDEX);
463463
sqlite3_int64 db_version = sqlite3_column_int64(c->vm, COL_DBVERSION_INDEX);
464464

465-
// for an explanation see https://github.com/sqlitecloud/cloudsync/blob/main/docs/RowID.md
465+
// for an explanation see https://github.com/sqliteai/sqlite-sync/blob/main/docs/RowID.md
466466
*rowid = (db_version << 30) | seq;
467467
return SQLITE_OK;
468468
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* sqlitecloud.css - Custom styling for genhtml output */
1+
/* sqliteai.css - Custom styling for genhtml output */
22

33
/* General layout adjustments */
44
body {

test/unittest.c renamed to test/unit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1473,7 +1473,7 @@ bool do_test_compare (sqlite3 *db, bool print_result) {
14731473

14741474
bool do_test_rowid (int ntest, bool print_result) {
14751475
for (int i=0; i<ntest; ++i) {
1476-
// for an explanation see https://github.com/sqlitecloud/cloudsync/blob/main/docs/RowID.md
1476+
// for an explanation see https://github.com/sqliteai/sqlite-sync/blob/main/docs/RowID.md
14771477
sqlite3_int64 db_version = (sqlite3_int64)random_int64_range(1, 17179869183);
14781478
sqlite3_int64 seq = (sqlite3_int64)random_int64_range(1, 1073741823);
14791479
sqlite3_int64 rowid = (db_version << 30) | seq;

0 commit comments

Comments
 (0)