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:
Brian J. Cardiff 2020-09-30 11:34:25 -03:00 committed by GitHub
parent 5f6055f4bd
commit 8586182fd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 11 deletions

View file

@ -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