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

docs: add sample for all data types #51

Merged
merged 5 commits into from Oct 25, 2021
Merged

docs: add sample for all data types #51

merged 5 commits into from Oct 25, 2021

Conversation

olavloite
Copy link
Collaborator

@olavloite olavloite commented Oct 12, 2021

Adds a sample for how to use all supported data types.

This sample depends on very recent changes in the Spanner client library that have not yet been officially released: googleapis/google-cloud-go#4936

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 12, 2021
@olavloite olavloite marked this pull request as ready for review October 19, 2021 08:22
float64 sql.NullFloat64
numeric spanner.NullNumeric // There is no sql.NullNumeric type
date spanner.NullDate // There is no sql.NullDate type
timestamp spanner.NullTime
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no sql.NullTime?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there is. Good catch, thanks.

examples/go.mod Outdated
@@ -5,13 +5,14 @@ go 1.14
replace github.com/cloudspannerecosystem/go-sql-spanner => ../

require (
cloud.google.com/go/spanner v1.25.0
cloud.google.com/go v0.97.0
cloud.google.com/go/spanner v1.26.1-0.20211019074412-4537b45d2611
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you want to upgrade to 1.27?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thanks for releasing that so quickly.

Copy link
Collaborator

@hengfengli hengfengli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@olavloite olavloite merged commit 5a0129b into main Oct 25, 2021
@olavloite olavloite deleted the types-sample branch October 25, 2021 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants