mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
column_count and column_names
close result_set and statements main entry points for exec_non_query and exec_query closing them when ready
This commit is contained in:
parent
e50cc4ec73
commit
caf2676aad
4 changed files with 56 additions and 0 deletions
|
@ -40,6 +40,14 @@ class DummyDriver < DB::Driver
|
|||
end
|
||||
end
|
||||
|
||||
def column_count
|
||||
2
|
||||
end
|
||||
|
||||
def column_name(index)
|
||||
"c#{index}"
|
||||
end
|
||||
|
||||
private def read? : DB::Any?
|
||||
n = @values.not_nil!.next
|
||||
raise "end of row" if n.is_a?(Iterator::Stop)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue