feat: add PostgreSQL schema isolation for playground environment
- Create schema.rs utility module with table_name() function - Add schema prefix to all SQL queries in postgres_db.rs - Support dev schema for playground, public for production - Add DATABASE_SCHEMA, MONGODB_DATABASE, QDRANT_COLLECTION config - Fix 40+ functions including videos, chunks, frames, vectors, etc. - Update Cargo dependencies
This commit is contained in:
22
Cargo.toml
22
Cargo.toml
@@ -33,10 +33,14 @@ sha2 = "0.10"
|
||||
hex = "0.4"
|
||||
uuid = { version = "1.0", features = ["v4"] }
|
||||
|
||||
# Security
|
||||
subtle = "2.5"
|
||||
aes-gcm = "0.10"
|
||||
base64 = "0.22"
|
||||
# Security
|
||||
subtle = "2.5"
|
||||
aes-gcm = "0.10"
|
||||
base64 = "0.22"
|
||||
|
||||
# Text processing
|
||||
jieba-rs = "0.8.1"
|
||||
ferrous-opencc = { version = "0.3.1", features = ["s2t-conversion", "t2s-conversion"] }
|
||||
|
||||
# Cache
|
||||
moka = { version = "0.12", features = ["future"] }
|
||||
@@ -50,7 +54,7 @@ qdrant-client = "1.7"
|
||||
reqwest = { version = "0.12", features = ["json"] }
|
||||
|
||||
# HTTP Server
|
||||
axum = "0.7"
|
||||
axum = { version = "0.7", features = ["multipart"] }
|
||||
tower = "0.4"
|
||||
|
||||
# API Documentation
|
||||
@@ -98,3 +102,11 @@ path = "src/playground.rs"
|
||||
[[bin]]
|
||||
name = "fix_chunks"
|
||||
path = "src/bin/fix_chunks.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "migrate_chinese_text"
|
||||
path = "src/bin/migrate_chinese_text.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "test_bm25_simple"
|
||||
path = "src/bin/test_bm25_simple.rs"
|
||||
|
||||
Reference in New Issue
Block a user