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:
Brian J. Cardiff 2016-01-29 21:57:00 -03:00
parent e50cc4ec73
commit caf2676aad
4 changed files with 56 additions and 0 deletions

View file

@ -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)