mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-31 13:54:27 +01:00
Merge branch 'main' into enc-page-1
This commit is contained in:
@@ -19,27 +19,27 @@ path = "main.rs"
|
||||
|
||||
[dependencies]
|
||||
anyhow.workspace = true
|
||||
cfg-if = "1.0.0"
|
||||
clap = { version = "4.5.31", features = ["derive"] }
|
||||
cfg-if = { workspace = true }
|
||||
clap = { workspace = true, features = ["derive"] }
|
||||
clap_complete = { version = "=4.5.47", features = ["unstable-dynamic"] }
|
||||
comfy-table = "7.1.4"
|
||||
csv = "1.3.1"
|
||||
ctrlc = "3.4.4"
|
||||
dirs = "5.0.1"
|
||||
env_logger = "0.10.1"
|
||||
env_logger = { workspace = true }
|
||||
libc = "0.2.172"
|
||||
turso_core = { path = "../core", default-features = true, features = [] }
|
||||
limbo_completion = { path = "../extensions/completion", features = ["static"] }
|
||||
miette = { version = "7.4.0", features = ["fancy"] }
|
||||
miette = { workspace = true, features = ["fancy"] }
|
||||
nu-ansi-term = {version = "0.50.1", features = ["serde", "derive_serde_style"]}
|
||||
rustyline = { version = "15.0.0", default-features = true, features = [
|
||||
"derive",
|
||||
] }
|
||||
shlex = "1.3.0"
|
||||
syntect = { git = "https://github.com/trishume/syntect.git", rev = "64644ffe064457265cbcee12a0c1baf9485ba6ee" }
|
||||
tracing = "0.1.41"
|
||||
tracing-appender = "0.2.3"
|
||||
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
|
||||
tracing = { workspace = true }
|
||||
tracing-appender = { workspace = true }
|
||||
tracing-subscriber = { workspace = true, features = ["env-filter"] }
|
||||
toml = {version = "0.8.20", features = ["preserve_order"]}
|
||||
schemars = {version = "0.8.22", features = ["preserve_order"]}
|
||||
serde = { workspace = true, features = ["derive"]}
|
||||
|
||||
@@ -1102,7 +1102,7 @@ impl Limbo {
|
||||
table_name: &str,
|
||||
) -> anyhow::Result<bool> {
|
||||
let sql = format!(
|
||||
"SELECT sql, type, name FROM {db_prefix}.sqlite_schema WHERE type IN ('table', 'index', 'view') AND (tbl_name = '{table_name}' OR name = '{table_name}') AND name NOT LIKE 'sqlite_%' ORDER BY CASE type WHEN 'table' THEN 1 WHEN 'view' THEN 2 WHEN 'index' THEN 3 END, rowid"
|
||||
"SELECT sql, type, name FROM {db_prefix}.sqlite_schema WHERE type IN ('table', 'index', 'view') AND (tbl_name = '{table_name}' OR name = '{table_name}') AND name NOT LIKE 'sqlite_%' AND name NOT LIKE '__turso_internal_%' ORDER BY CASE type WHEN 'table' THEN 1 WHEN 'view' THEN 2 WHEN 'index' THEN 3 END, rowid"
|
||||
);
|
||||
|
||||
let mut found = false;
|
||||
@@ -1135,7 +1135,7 @@ impl Limbo {
|
||||
db_prefix: &str,
|
||||
db_display_name: &str,
|
||||
) -> anyhow::Result<()> {
|
||||
let sql = format!("SELECT sql, type, name FROM {db_prefix}.sqlite_schema WHERE type IN ('table', 'index', 'view') AND name NOT LIKE 'sqlite_%' ORDER BY CASE type WHEN 'table' THEN 1 WHEN 'view' THEN 2 WHEN 'index' THEN 3 END, rowid");
|
||||
let sql = format!("SELECT sql, type, name FROM {db_prefix}.sqlite_schema WHERE type IN ('table', 'index', 'view') AND name NOT LIKE 'sqlite_%' AND name NOT LIKE '__turso_internal_%' ORDER BY CASE type WHEN 'table' THEN 1 WHEN 'view' THEN 2 WHEN 'index' THEN 3 END, rowid");
|
||||
|
||||
match self.conn.query(&sql) {
|
||||
Ok(Some(ref mut rows)) => loop {
|
||||
|
||||
Reference in New Issue
Block a user