Use text instead of string as sqlite type

Ref: crystal-lang/crystal-db#71
This commit is contained in:
Brian J. Cardiff 2017-11-13 10:59:59 -03:00
parent adf64daa08
commit ae84010c28
4 changed files with 7 additions and 7 deletions

View file

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