mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
Simplify flags creation and usage
This commit is contained in:
parent
db48a03797
commit
eb8e4a6962
3 changed files with 22 additions and 14 deletions
|
@ -40,8 +40,7 @@ describe Database do
|
|||
db.execute "create table person (name string, age integer)"
|
||||
db.execute "insert into person values (\"foo\", 10)"
|
||||
in_memory_db = Database.new("file:memdb1?mode=memory&cache=shared",
|
||||
SQLite3::Flag::URI | SQLite3::Flag::CREATE | SQLite3::Flag::READWRITE |
|
||||
SQLite3::Flag::FULLMUTEX)
|
||||
SQLite3.flags(URI, CREATE, READWRITE, FULLMUTEX))
|
||||
source_rows = db.execute "select * from person"
|
||||
|
||||
db.dump(in_memory_db)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue