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

civil: support sql.Scanner and driver.Valuer #1145

Closed
jgiles opened this issue Sep 12, 2018 · 11 comments
Closed

civil: support sql.Scanner and driver.Valuer #1145

jgiles opened this issue Sep 12, 2018 · 11 comments
Assignees
Labels
api: spanner Issues related to the Spanner API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@jgiles
Copy link

jgiles commented Sep 12, 2018

It would be great if e.g. civil.Date was directly usable in SQL queries.

@jeanbza jeanbza added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. api: spanner Issues related to the Spanner API. labels Sep 12, 2018
@jeanbza jeanbza self-assigned this Sep 12, 2018
@jba
Copy link
Contributor

jba commented Sep 13, 2018

Just to clarify: are you using civil.Date with Spanner, or with a SQL system outside of this repo? The database/sql package isn't used by any package in this repo.

@jgiles
Copy link
Author

jgiles commented Sep 18, 2018

I'm using it with an SQL system outside this repo. I don't really know what will happen with golang/go#19700 (and whether whatever is added looks like this type), but for the time being civil provides a clean version of a widely-useful fundemental type.

If it's not intended for this package to be used more widely, please let me know :-)

Scanner/Valuer seem pretty common on basic types like this, and are very useful.

@jba
Copy link
Contributor

jba commented Sep 18, 2018

@bradfitz thoughts?

@bradfitz
Copy link
Contributor

Seems reasonable.

@jba jba self-assigned this Sep 20, 2018
@jgiles
Copy link
Author

jgiles commented Sep 25, 2018

FYI I have a PR in progress, just need to add testing.

@jba
Copy link
Contributor

jba commented Sep 25, 2018

We don't accept GitHub PRs; we use Gerrit. See CONTRIBUTING.md.

But if you put up a PR, I will make a Gerrit CL for you.

@jeanbza jeanbza unassigned jba Oct 19, 2018
@odeke-em odeke-em changed the title FR: Support sql.Scanner and driver.Valuer in civil package civil: support sql.Scanner and driver.Valuer Jul 14, 2019
@jeanbza jeanbza removed their assignment Jul 15, 2019
@jeanbza
Copy link
Member

jeanbza commented Oct 10, 2019

cc @shollyman

@skuruppu
Copy link
Contributor

@tbpg would you be able to help us route this issue to the right place? @olavloite and I were looking at this and it doesn't seem like this is related to spanner.

@tbpg tbpg added api: spanner Issues related to the Spanner API. and removed api: spanner Issues related to the Spanner API. labels May 20, 2020
@tbpg
Copy link
Contributor

tbpg commented May 20, 2020

Spanner and BigQuery are the two importers of the civil package in cloud.google.com/go. So, I think either api: spanner or api: bigquery make the most sense as the owner for this issue.

@skuruppu
Copy link
Contributor

From my understanding of this issue, I think the intention is to add sql.Scanner and driver.Valuer support in https://github.com/googleapis/google-cloud-go/blob/master/civil/civil.go.

I'm not sure who in the Go team maintains that package at the moment. So I might leave it up to the Go team to assign this to the right person.

@codyoss codyoss self-assigned this Dec 3, 2020
@codyoss
Copy link
Member

codyoss commented Apr 16, 2024

Closing due to no traction on this in the last 4ish years

@codyoss codyoss closed this as completed Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the Spanner API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

7 participants