Skip to content

Commit

Permalink
code fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
KKould committed Jan 28, 2024
1 parent 650ab8b commit a53eee2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions benchmarks/query_benchmark.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use criterion::{criterion_group, criterion_main, Criterion};
use indicatif::{ProgressBar, ProgressStyle};
use itertools::Itertools;
use fnck_sql::db::{Database, DatabaseError};
use fnck_sql::execution::volcano;
use fnck_sql::storage::kip::KipStorage;
use fnck_sql::storage::Storage;
use indicatif::{ProgressBar, ProgressStyle};
use itertools::Itertools;
use sqlite::Error;
use std::cell::RefCell;
use std::fs;
Expand All @@ -17,7 +17,9 @@ const QUERY_BENCH_SQLITE_PATH: &'static str = "./sqlite_bench";
const TABLE_ROW_NUM: u64 = 2_00_000;

async fn init_fncksql_query_bench() -> Result<(), DatabaseError> {
let database = Database::with_kipdb(QUERY_BENCH_FNCK_SQL_PATH).await.unwrap();
let database = Database::with_kipdb(QUERY_BENCH_FNCK_SQL_PATH)
.await
.unwrap();
database
.run("create table t1 (c1 int primary key, c2 int)")
.await?;
Expand Down
2 changes: 1 addition & 1 deletion examples/hello_world.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use itertools::Itertools;
use fnck_sql::db::{Database, DatabaseError};
use fnck_sql::implement_from_tuple;
use fnck_sql::types::tuple::Tuple;
use fnck_sql::types::value::DataValue;
use fnck_sql::types::LogicalType;
use itertools::Itertools;

#[derive(Default, Debug, PartialEq)]
struct MyStruct {
Expand Down
4 changes: 3 additions & 1 deletion src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,9 @@ mod test {
let _ = fnck_sql.run_on_query("truncate t1", query_execute).await?;

println!("drop t1:");
let _ = fnck_sql.run_on_query("drop table t1", query_execute).await?;
let _ = fnck_sql
.run_on_query("drop table t1", query_execute)
.await?;

println!("decimal:");
let tuples_decimal = fnck_sql
Expand Down

0 comments on commit a53eee2

Please sign in to comment.