WIP, incorporating type parsing using new sqlez patterns
This commit is contained in:
parent
3c1b747f64
commit
c8face33fa
4 changed files with 73 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
use anyhow::Result;
|
||||
use anyhow::{Result, anyhow};
|
||||
|
||||
use std::{
|
||||
ffi::OsStr,
|
||||
|
@ -10,7 +10,7 @@ use std::{
|
|||
|
||||
use indoc::indoc;
|
||||
use sqlez::{
|
||||
connection::Connection, migrations::Migration,
|
||||
connection::Connection, migrations::Migration, bindable::{Column, Bind},
|
||||
};
|
||||
|
||||
use crate::pane::SerializedDockPane;
|
||||
|
@ -45,6 +45,18 @@ impl WorkspaceId {
|
|||
}
|
||||
}
|
||||
|
||||
impl Bind for WorkspaceId {
|
||||
fn bind(&self, statement: &sqlez::statement::Statement, start_index: i32) -> Result<i32> {
|
||||
todo!();
|
||||
}
|
||||
}
|
||||
|
||||
impl Column for WorkspaceId {
|
||||
fn column(statement: &mut sqlez::statement::Statement, start_index: i32) -> Result<(Self, i32)> {
|
||||
todo!();
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Default, Debug)]
|
||||
pub struct SerializedWorkspace {
|
||||
pub workspace_id: WorkspaceId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue