Skip to content

Commit

Permalink
Add working migratable sqlite db
Browse files Browse the repository at this point in the history
  • Loading branch information
HammadB committed Jan 19, 2025
1 parent edaec14 commit 1485419
Show file tree
Hide file tree
Showing 4 changed files with 327 additions and 10 deletions.
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions chromadb/db/impl/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def __init__(self, system: System):
def start(self) -> None:
super().start()
with self.tx() as cur:
# NOTE(hammadb) foreign_keys on is a no-op in a transaction
cur.execute("PRAGMA foreign_keys = ON")
cur.execute("PRAGMA case_sensitive_like = ON")
self.initialize_migrations()
Expand Down
6 changes: 6 additions & 0 deletions rust/sysdb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ chroma-config = { workspace = true }
chroma-error = { workspace = true }
chroma-types = { workspace = true }
sqlx = { version = "0.8.3", features = [ "runtime-tokio", "sqlite"] }
regex = "1.11.1"
sha2 = "0.10.8"
md5 = "0.7.0"

[dev-dependencies]
tempfile = { workspace = true }
Loading

0 comments on commit 1485419

Please sign in to comment.