mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
Update sqlite readme sample to use TEXT (#71)
This commit is contained in:
parent
437f8c39ec
commit
4ee820a537
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ require "sqlite3"
|
|||
|
||||
DB.open "sqlite3:./file.db" do |db|
|
||||
# When using the pg driver, use $1, $2, etc. instead of ?
|
||||
db.exec "create table contacts (name string, age integer)"
|
||||
db.exec "create table contacts (name text, age integer)"
|
||||
db.exec "insert into contacts values (?, ?)", "John Doe", 30
|
||||
|
||||
args = [] of DB::Any
|
||||
|
|
Loading…
Reference in a new issue