Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sqlite_adapter
version: 0.1.0
version: 0.1.1

authors:
- Giorgio Pellero <[email protected]>
Expand All @@ -9,7 +9,7 @@ license: MIT
dependencies:
sqlite3:
github: manastech/crystal-sqlite3
version: ~> 0.2
version: 0.4.0
active_record:
github: waterlink/active_record.cr
version: ~> 0.4
version: ~> 1.0
2 changes: 1 addition & 1 deletion src/sqlite_adapter.cr
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module SqliteAdapter

getter table_name, primary_field, fields, types

def initialize(@table_name, @primary_field, @fields, register = true)
def initialize(@table_name : String, @primary_field : String, @fields : Array(String), register = true)
@db = SQLite3::Database.new(ENV["SQLITE_DB"]? || "data.db")
@types = Hash(String, String).new
res = @db.query("PRAGMA table_info(#{@table_name})")
Expand Down