Skip to content

Commit

Permalink
feat: make default in init duckdb
Browse files Browse the repository at this point in the history
  • Loading branch information
benfdking committed May 7, 2024
1 parent 6c4d0f8 commit a7c9192
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ Once installed, a sample project can be created and run as follows:
```shell
mkdir example # create an empty project folder
cd example
quary init # initialize demo project with sample seeds & models inside current directory
quary init # initialize DuckDB demo project with sample data
quary compile # validate the project structure and model references without database
quary test -s # run defined tests against target database
quary build # build and execute the model views/seeds against target database
quary test -s # run defined tests against target database
```

Note that you will most likely want to use
Expand Down
2 changes: 1 addition & 1 deletion rust/cli/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub struct ConvertDbtArgs {

#[derive(Args, Debug)]
pub struct InitArgs {
#[arg(value_enum, long = "type", short = 't', default_value_t = InitType::Sqlite)]
#[arg(value_enum, long = "type", short = 't', default_value_t = InitType::Duckdb)]
/// Select which sample initialisation to show
pub mode: InitType,
}
Expand Down
4 changes: 2 additions & 2 deletions rust/cli/tests/cli_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn test_cli_in_memory() {

// Define the sequence of command arguments
let commands = vec![
vec!["init"],
vec!["init", "-t=sqlite"],
vec!["compile"],
vec!["build"],
vec!["build", "-c"],
Expand Down Expand Up @@ -48,7 +48,7 @@ fn test_rust_run_sqlite() {
Command::cargo_bin(name)
.unwrap()
.current_dir(project_dir)
.args(vec!["init"])
.args(vec!["init", "-t=sqlite"])
.assert()
.success();

Expand Down

0 comments on commit a7c9192

Please sign in to comment.