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:
@@ -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 = ?"}
|
||||
|
||||
Reference in New Issue
Block a user