mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
column_count, column_name, close statement
This commit is contained in:
parent
63f98d18d1
commit
5266a7e7b3
3 changed files with 42 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue