mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
Use text instead of string as sqlite type
Ref: crystal-lang/crystal-db#71
This commit is contained in:
parent
adf64daa08
commit
ae84010c28
4 changed files with 7 additions and 7 deletions
|
@ -2,7 +2,7 @@ require "db"
|
|||
require "../src/sqlite3"
|
||||
|
||||
DB.open "sqlite3://%3Amemory%3A" do |db|
|
||||
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…
Add table
Add a link
Reference in a new issue