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
First throw at adding sqlite as storage backend for the syncserver and
the tokenserver.
There is probably some duplicated code between:
- syncstorage-mysql and syncstorage-sqlite
- tokenserver-db-mysql and tokenserver-db-sqlite
tokenserver-db-sqlite probably contains Mysql-specific SQL that might
break Sqlite when ran.
Squashed commit of the following:
commit 1047197
Author: Eragon <[email protected]>
Date: Wed Mar 6 00:24:07 2024 +0100
fix: Fix default for tokenserver-db
commit 5e2a745
Author: Eragon <[email protected]>
Date: Sun Feb 11 22:00:46 2024 +0100
tokenserver-db defaults to use mysql as db backend
commit a587787
Author: Eragon <[email protected]>
Date: Sun Feb 11 21:47:55 2024 +0100
Run cargo fmt
commit c8c1458
Author: Eragon <[email protected]>
Date: Sun Feb 11 20:32:19 2024 +0100
Better logging of migrations
commit e2b8563
Author: Eragon <[email protected]>
Date: Tue Jan 30 00:36:11 2024 +0100
wip: At least it runs now
commit bd24d7c
Author: Eragon <[email protected]>
Date: Mon Jan 22 11:20:38 2024 +0100
lll
commit 07ba38f
Author: Eragon <[email protected]>
Date: Fri Jan 19 14:35:20 2024 +0100
wip: First throw at adding sqlite as a storage backend
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@ Mozilla Sync Storage built with [Rust](https://rust-lang.org).
12
12
-[Local Setup](#local-setup)
13
13
-[MySQL](#mysql)
14
14
-[Spanner](#spanner)
15
+
-[Sqlite](#sqlite)
15
16
-[Running via Docker](#running-via-docker)
16
17
-[Connecting to Firefox](#connecting-to-firefox)
17
18
-[Logging](#logging)
@@ -179,6 +180,15 @@ To run an application server that points to the local Spanner emulator:
179
180
SYNC_SYNCSTORAGE__SPANNER_EMULATOR_HOST=localhost:9010 make run_spanner
180
181
```
181
182
183
+
### Sqlite
184
+
185
+
Setting up the server with sqlite only requires a path to the database file,
186
+
which will be created automatically:
187
+
188
+
`sqlite:path/syncdb.sqlite`
189
+
190
+
This requires at least sqlite v3.24.0 to be installed on the host system.
191
+
182
192
### Running via Docker
183
193
184
194
This requires access to [Google Cloud Rust (raw)](https://crates.io/crates/google-cloud-rust-raw/) crate. Please note that due to interdependencies, you will need to ensure that `grpcio` and `protobuf` match the version used by `google-cloud-rust-raw`.
0 commit comments