Made dev tools not break everything about the db
Also improved multi statements to allow out of order parameter binding in statements Ensured that all statements are run for maybe_row and single, and that of all statements only 1 of them returns only 1 row Made bind and column calls add useful context to errors Co-authored-by: kay@zed.dev
This commit is contained in:
parent
2dc1130902
commit
3e0f9d27a7
13 changed files with 219 additions and 110 deletions
|
@ -32,7 +32,7 @@ impl Domain for Editor {
|
|||
|
||||
impl EditorDb {
|
||||
sql_method! {
|
||||
get_path(item_id: ItemId, workspace_id: WorkspaceId) -> Result<Option<PathBuf>>:
|
||||
get_path(item_id: ItemId, workspace_id: WorkspaceId) -> Result<PathBuf>:
|
||||
indoc! {"
|
||||
SELECT path FROM editors
|
||||
WHERE item_id = ? AND workspace_id = ?"}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue