We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e08070 commit 3aa3c9dCopy full SHA for 3aa3c9d
README.md
@@ -4,6 +4,7 @@ Features:
4
5
1. Design for ARC/ORC, no need manually close connection
6
2. Use `importdb` macro to create helper function (see examples)
7
+3. Including a memfs implemention (may better than `:memory:` database since it support WAL mode)
8
9
## Example
10
@@ -44,8 +45,12 @@ const dataset = {
44
45
"D": 3,
46
}.toTable
47
db.create_table()
-for name, value in dataset:
48
- db.insert_data name, value
+# Use transaction (commit by default)
49
+db.transaction:
50
+ for name, value in dataset:
51
+ db.insert_data name, value
52
+ commit() # optional
53
+ # Never goes here
54
55
for name, value in db.iterate_data():
56
assert name in dataset
0 commit comments