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

Add Type(), IsNil(), & Blob() to type Value #64

Closed
wants to merge 2 commits into from

Conversation

AdamSLevy
Copy link
Collaborator

Previously it was impossible to access the sqlite3_value_type() function
for a Value. Now this is exposed via Value.Type().

Additionally, it was impossible to know if a returned Value was actually
nil, which can occur when ChangesetIter.New() has no change for the
given column. Using any of the returned Value's methods would result in
panic. Now this can be checked using Value.IsNil().

Also, Value.Blob() is now implemented.

Issue #61

Previously it was impossible to access the sqlite3_value_type() function
for a Value. Now this is exposed via Value.Type().

Additionally, it was impossible to know if a returned Value was actually
nil, which can occur when ChangesetIter.New() has no change for the
given column. Using any of the returned Value's methods would result in
panic. Now this can be checked using Value.IsNil().

Also, Value.Blob() is now implemented.

Issue crawshaw#61
According to the documentation, calling _value_text can change the
length and type of the Value. So this must be called before asking for
the length with sqlite3_value_bytes.
@AdamSLevy
Copy link
Collaborator Author

on master

@AdamSLevy AdamSLevy closed this Dec 10, 2019
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