Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove row array wrappers #471

Merged
merged 1 commit into from
Jan 10, 2024
Merged

Remove row array wrappers #471

merged 1 commit into from
Jan 10, 2024

Conversation

tenderlove
Copy link
Member

This commit removes deprecated row array wrappers. If you want to access "types" for a particular query, then use a prepared statement.

Deprecated / removed code looks like this:

row = @db.execute("select * from foo")
assert_equal ["blob"], row.first.types

If you would like to access the "types" associated with a returned query, use a prepared statement like this:

@db.prepare("select * from foo") do |v|
  assert_equal ["blob"], v.types
end

This commit removes deprecated row array wrappers.  If you want to
access "types" for a particular query, then use a prepared statement.

Deprecated / removed code looks like this:

```ruby
row = @db.execute("select * from foo")
assert_equal ["blob"], row.first.types
```

If you would like to access the "types" associated with a returned
query, use a prepared statement like this:

```ruby
@db.prepare("select * from foo") do |v|
  assert_equal ["blob"], v.types
end

```
@tenderlove tenderlove merged commit 886438c into main Jan 10, 2024
@tenderlove tenderlove deleted the remove-types branch January 10, 2024 20:52
@tenderlove tenderlove mentioned this pull request Jan 10, 2024
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant