We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e983e9 commit aabb8f6Copy full SHA for aabb8f6
lib/activerecord_adbc_adapter/result.rb
@@ -92,6 +92,15 @@ def indexed_rows
92
@indexed_rows ||= to_a
93
end
94
95
+ def cast_values(type_overrides = {})
96
+ # TODO: type_overrides support
97
+ if fields.size == 1
98
+ rows.map(&:first)
99
+ else
100
+ rows
101
+ end
102
103
+
104
def to_arrow
105
@table
106
test/test_model.rb
@@ -23,6 +23,10 @@ def test_all
23
User.select(:id).all)
24
25
26
+ def test_count
27
+ assert_equal(3, User.count)
28
29
30
sub_test_case(".ingest") do
31
def id_array
32
Arrow::Int64Array.new([4, 5, 6])
0 commit comments