Skip to content

Commit

Permalink
Update README.md for dynamic args (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian J. Cardiff authored Jan 14, 2020
1 parent aed9acb commit d9f916a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ DB.open "sqlite3://./data.db" 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
Expand Down

0 comments on commit d9f916a

Please sign in to comment.