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

Simple select for array columns #66

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bryant-sharethis
Copy link

I was trying to specify column names for columns of type "array" and no data was showing up.

let cursor = reader.getCursor([
  'array_column'
])

Upon investigation, the code was only checking for exact matches down to the individual fields in arrays, so the required code was

let cursor = reader.getCursor([
  ['array_column', 'element', 'list', 'specific_field']
])

This wasn't documented, so I added it to the readme.

I also added support for simply specifying

let cursor = reader.getCursor([
  'array_column'
])

which is more intuitive when you want all of the data in the array

@bryant-sharethis bryant-sharethis changed the title Simple select Simple select for array columns Mar 9, 2021
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