mirror of
https://gitea.invidious.io/iv-org/shard-crystal-sqlite3.git
synced 2024-08-15 00:53:26 +00:00
rename types
This commit is contained in:
parent
1d52f93879
commit
07ba7d6d51
3 changed files with 4 additions and 4 deletions
|
@ -14,7 +14,7 @@ class SQLite3::Connection < DB::Connection
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_statement(query)
|
def build_statement(query)
|
||||||
Statement2.new(self, query)
|
Statement.new(self, query)
|
||||||
end
|
end
|
||||||
|
|
||||||
def do_close
|
def do_close
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
class SQLite3::ResultSet2 < DB::ResultSet
|
class SQLite3::ResultSet < DB::ResultSet
|
||||||
@column_index = 0
|
@column_index = 0
|
||||||
|
|
||||||
protected def do_close
|
protected def do_close
|
|
@ -1,4 +1,4 @@
|
||||||
class SQLite3::Statement2 < DB::Statement
|
class SQLite3::Statement < DB::Statement
|
||||||
def initialize(connection, sql)
|
def initialize(connection, sql)
|
||||||
super(connection)
|
super(connection)
|
||||||
check LibSQLite3.prepare_v2(@connection, sql, sql.bytesize + 1, out @stmt, nil)
|
check LibSQLite3.prepare_v2(@connection, sql, sql.bytesize + 1, out @stmt, nil)
|
||||||
|
@ -9,7 +9,7 @@ class SQLite3::Statement2 < DB::Statement
|
||||||
args.each_with_index(1) do |arg, index|
|
args.each_with_index(1) do |arg, index|
|
||||||
bind_arg(index, arg)
|
bind_arg(index, arg)
|
||||||
end
|
end
|
||||||
ResultSet2.new(self)
|
ResultSet.new(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
protected def perform_exec(args : Slice(DB::Any))
|
protected def perform_exec(args : Slice(DB::Any))
|
Loading…
Reference in a new issue