mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-01-08 23:34:46 +00:00
fix: remove dbg
This commit is contained in:
parent
a336027b0e
commit
6fa01aa982
@ -136,7 +136,7 @@ type TupleOfBytes = (Vec<u8>, Vec<u8>);
|
|||||||
impl SqliteTable {
|
impl SqliteTable {
|
||||||
#[tracing::instrument(skip(self, guard, key))]
|
#[tracing::instrument(skip(self, guard, key))]
|
||||||
fn get_with_guard(&self, guard: &Connection, key: &[u8]) -> Result<Option<Vec<u8>>> {
|
fn get_with_guard(&self, guard: &Connection, key: &[u8]) -> Result<Option<Vec<u8>>> {
|
||||||
dbg!(&self.name);
|
//dbg!(&self.name);
|
||||||
Ok(guard
|
Ok(guard
|
||||||
.prepare(format!("SELECT value FROM {} WHERE key = ?", self.name).as_str())?
|
.prepare(format!("SELECT value FROM {} WHERE key = ?", self.name).as_str())?
|
||||||
.query_row([key], |row| row.get(0))
|
.query_row([key], |row| row.get(0))
|
||||||
@ -145,7 +145,7 @@ impl SqliteTable {
|
|||||||
|
|
||||||
#[tracing::instrument(skip(self, guard, key, value))]
|
#[tracing::instrument(skip(self, guard, key, value))]
|
||||||
fn insert_with_guard(&self, guard: &Connection, key: &[u8], value: &[u8]) -> Result<()> {
|
fn insert_with_guard(&self, guard: &Connection, key: &[u8], value: &[u8]) -> Result<()> {
|
||||||
dbg!(&self.name);
|
//dbg!(&self.name);
|
||||||
guard.execute(
|
guard.execute(
|
||||||
format!(
|
format!(
|
||||||
"INSERT OR REPLACE INTO {} (key, value) VALUES (?, ?)",
|
"INSERT OR REPLACE INTO {} (key, value) VALUES (?, ?)",
|
||||||
@ -179,7 +179,7 @@ impl SqliteTable {
|
|||||||
.query_map([], |row| Ok((row.get_unwrap(0), row.get_unwrap(1))))
|
.query_map([], |row| Ok((row.get_unwrap(0), row.get_unwrap(1))))
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.map(move |r| {
|
.map(move |r| {
|
||||||
dbg!(&name);
|
//dbg!(&name);
|
||||||
r.unwrap()
|
r.unwrap()
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
@ -286,7 +286,7 @@ impl Tree for SqliteTable {
|
|||||||
.query_map([from], |row| Ok((row.get_unwrap(0), row.get_unwrap(1))))
|
.query_map([from], |row| Ok((row.get_unwrap(0), row.get_unwrap(1))))
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.map(move |r| {
|
.map(move |r| {
|
||||||
dbg!(&name);
|
//dbg!(&name);
|
||||||
r.unwrap()
|
r.unwrap()
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
@ -311,7 +311,7 @@ impl Tree for SqliteTable {
|
|||||||
.query_map([from], |row| Ok((row.get_unwrap(0), row.get_unwrap(1))))
|
.query_map([from], |row| Ok((row.get_unwrap(0), row.get_unwrap(1))))
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.map(move |r| {
|
.map(move |r| {
|
||||||
dbg!(&name);
|
//dbg!(&name);
|
||||||
r.unwrap()
|
r.unwrap()
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user