Skip to content

Commit abe4ab1

Browse files
committed
Migrate to GitQL SDK 0.37.0
1 parent 6299718 commit abe4ab1

File tree

5 files changed

+80
-70
lines changed

5 files changed

+80
-70
lines changed

Cargo.lock

Lines changed: 66 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ categories = ["command-line-utilities"]
1313
exclude = [".github/**", "docs/**", "media/**", "scripts/**"]
1414

1515
[dependencies]
16-
gitql-core = "0.13.0"
17-
gitql-std = "0.13.0"
18-
gitql-ast = "0.32.0"
19-
gitql-parser = "0.35.0"
20-
gitql-cli = "0.36.0"
21-
gitql-engine = "0.36.0"
16+
gitql-core = "0.14.0"
17+
gitql-std = "0.14.0"
18+
gitql-ast = "0.33.0"
19+
gitql-parser = "0.36.0"
20+
gitql-cli = "0.37.0"
21+
gitql-engine = "0.37.0"

src/data_provider.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use std::path::Path;
22

33
use gitql_core::object::Row;
4-
use gitql_core::values::base::Value;
54
use gitql_core::values::boolean::BoolValue;
65
use gitql_core::values::integer::IntValue;
76
use gitql_core::values::null::NullValue;
87
use gitql_core::values::text::TextValue;
8+
use gitql_core::values::Value;
99
use gitql_engine::data_provider::DataProvider;
1010

1111
pub struct FileDataProvider {
@@ -43,7 +43,7 @@ fn select_files(
4343
if column_name == "path" {
4444
let file_path_string = path.to_str().unwrap_or("");
4545
let value = file_path_string.to_string();
46-
values.push(Box::new(TextValue { value }));
46+
values.push(Box::new(TextValue::new(value)));
4747
continue;
4848
}
4949

@@ -54,7 +54,7 @@ fn select_files(
5454
""
5555
};
5656
let value = parent_path.to_string();
57-
values.push(Box::new(TextValue { value }));
57+
values.push(Box::new(TextValue::new(value)));
5858
continue;
5959
}
6060

@@ -64,19 +64,19 @@ fn select_files(
6464
.and_then(|ext| ext.to_str())
6565
.unwrap_or("")
6666
.to_string();
67-
values.push(Box::new(TextValue { value }));
67+
values.push(Box::new(TextValue::new(value)));
6868
continue;
6969
}
7070

7171
if column_name == "is_dir" {
7272
let value = path.is_dir();
73-
values.push(Box::new(BoolValue { value }));
73+
values.push(Box::new(BoolValue::new(value)));
7474
continue;
7575
}
7676

7777
if column_name == "is_file" {
7878
let value = path.is_file();
79-
values.push(Box::new(BoolValue { value }));
79+
values.push(Box::new(BoolValue::new(value)));
8080
continue;
8181
}
8282

src/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use gitql_ast::types::integer::IntType;
22
use gitql_ast::types::text::TextType;
33
use gitql_core::signature::Signature;
44
use gitql_core::signature::StandardFunction;
5-
use gitql_core::values::base::Value;
65
use gitql_core::values::integer::IntValue;
6+
use gitql_core::values::Value;
77
use gitql_std::standard::standard_function_signatures;
88
use gitql_std::standard::standard_functions;
99
use std::collections::HashMap;

src/schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use std::collections::HashMap;
22
use std::sync::OnceLock;
33

4-
use gitql_ast::types::base::DataType;
54
use gitql_ast::types::boolean::BoolType;
65
use gitql_ast::types::integer::IntType;
76
use gitql_ast::types::text::TextType;
7+
use gitql_ast::types::DataType;
88
use gitql_core::environment::Environment;
99
use gitql_core::schema::Schema;
1010
use gitql_std::aggregation::aggregation_function_signatures;

0 commit comments

Comments
 (0)