-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue: dart-lang/sdk#35775 Change-Id: I2ce86c554ffd6f49050cf63ead60809c08fb02e5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/97504 Reviewed-by: Michael Thomsen <mit@google.com>
- Loading branch information
1 parent
6907930
commit f135a49
Showing
17 changed files
with
1,865 additions
and
0 deletions.
There are no files selected for viewing
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,7 @@ | ||
.dart_tool | ||
.gdb_history | ||
.packages | ||
.vscode | ||
pubspec.lock | ||
test.db | ||
test.db-journal |
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,41 @@ | ||
# Sample code dart:ffi | ||
|
||
This is an illustrative sample for how to use `dart:ffi`. | ||
|
||
|
||
## Building and Running this Sample | ||
|
||
Building and running this sample is done through pub. | ||
Running `pub get` and `pub run test` should produce the following output. | ||
|
||
```sh | ||
$ pub get | ||
Resolving dependencies... (6.8s) | ||
+ analyzer 0.35.4 | ||
... | ||
+ yaml 2.1.15 | ||
Downloading analyzer 0.35.4... | ||
Downloading kernel 0.3.14... | ||
Downloading front_end 0.1.14... | ||
Changed 47 dependencies! | ||
Precompiling executables... (18.0s) | ||
Precompiled test:test. | ||
|
||
``` | ||
|
||
``` | ||
$ pub run test | ||
00:01 +0: test/sqlite_test.dart: sqlite integration test | ||
1 Chocolade chip cookie Chocolade cookie foo | ||
2 Ginger cookie null 42 | ||
3 Cinnamon roll null null | ||
1 Chocolade chip cookie Chocolade cookie foo | ||
2 Ginger cookie null 42 | ||
expected exception on accessing result data after close: The result has already been closed. | ||
expected this query to fail: no such column: non_existing_column (Code 1: SQL logic error) | ||
00:02 +3: All tests passed! | ||
``` | ||
|
||
## Tutorial | ||
|
||
A tutorial walking through the code is available in [docs/sqlite-tutorial.md](docs/sqlite-tutorial.md). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.