mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
Add ResultSet#column_names
. Fixes #11
This commit is contained in:
parent
1a4622ee59
commit
b5112d9a48
2 changed files with 13 additions and 0 deletions
|
@ -56,4 +56,12 @@ describe DB::ResultSet do
|
|||
|
||||
cols.should eq(["c0", "c1"])
|
||||
end
|
||||
|
||||
it "gets all column names" do
|
||||
with_dummy do |db|
|
||||
db.query "1,2" do |rs|
|
||||
rs.column_names.should eq(%w(c0 c1))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue