column_count, column_name, close statement

This commit is contained in:
Brian J. Cardiff 2016-01-29 21:58:04 -03:00
parent 63f98d18d1
commit 5266a7e7b3
3 changed files with 42 additions and 0 deletions

View file

@ -57,6 +57,14 @@ class SQLite3::ResultSet2 < DB::ResultSet
end
end
def column_count
LibSQLite3.column_count(self)
end
def column_name(index)
String.new LibSQLite3.column_name(self, index)
end
def to_unsafe
@statement.to_unsafe
end

View file

@ -8,6 +8,10 @@ class SQLite3::Statement2 < DB::Statement
LibSQLite3.reset(self)
end
protected def on_close
check LibSQLite3.finalize(self)
end
protected def add_parameter(index : Int32, value)
bind_arg(index, value)
end