-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #299 from roc-lang/sqlite
Add Sqlite to basic-cli
- Loading branch information
Showing
16 changed files
with
1,557 additions
and
6 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/expect | ||
|
||
# uncomment line below for debugging | ||
# exp_internal 1 | ||
|
||
set timeout 7 | ||
|
||
source ./ci/expect_scripts/shared-code.exp | ||
|
||
set env(DB_PATH) $env(EXAMPLES_DIR)todos.db | ||
|
||
spawn $env(EXAMPLES_DIR)sqlite | ||
|
||
|
||
expect "Todo Tasks:" { | ||
expect "\tid: 3, task: Share my ❤️ for Roc" { | ||
expect "Completed Tasks:" { | ||
expect "\tid: 1, task: Prepare for AoC" { | ||
expect eof { | ||
check_exit_and_segfault | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
puts stderr "\nError: output was different from expected value." | ||
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[package] | ||
name = "roc_sqlite" | ||
description = "Common functionality for Roc to interface with sqlite" | ||
|
||
authors.workspace = true | ||
edition.workspace = true | ||
license.workspace = true | ||
version.workspace = true | ||
|
||
[dependencies] | ||
roc_std.workspace = true | ||
roc_std_heap.workspace = true | ||
libsqlite3-sys.workspace = true | ||
thread_local.workspace = true |
Oops, something went wrong.