mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
Update crystal-db ~> 0.10.0 and Crystal 0.35.0 for logging support (#58)
* Update crystal-db for logging support * Update sample * Update to crystal-db ~> 0.10.0
This commit is contained in:
parent
5f6055f4bd
commit
8586182fd8
4 changed files with 7 additions and 11 deletions
|
@ -8,7 +8,7 @@ DB.open "sqlite3://%3Amemory%3A" do |db|
|
|||
args = [] of DB::Any
|
||||
args << "Sarah"
|
||||
args << 33
|
||||
db.exec "insert into contacts values (?, ?)", args
|
||||
db.exec "insert into contacts values (?, ?)", args: args
|
||||
|
||||
puts "max age:"
|
||||
puts db.scalar "select max(age) from contacts" # => 33
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue