-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
New Driver Interface #14
Labels
Comments
I would at least to start. Only add contexts to the Lock and Unlock functions. Since there is already configuration to have a Timeout but this seems to be very inconsistently applied across the drivers. With mysql, setting its own timeout of 10seconds, and postgres only returning instantly. I haven't checked the others. |
dhui
added
backwards incompatible
Change is backwards incompatible
help wanted
Extra attention is needed
labels
May 17, 2018
Should support for |
This was referenced Jan 3, 2020
4 tasks
This was referenced Feb 25, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Goals:
Possible Goals:
*sql.Conn
or*sql.DB
or some interface) - for overwriting migration management queriesConfig
structs have all of their fields exported. This is dangerous since the DB driver has a pointer to theConfig
, whose exported field values may be changed inadvertently. Another option would be to keep a copy of theConfig
struct in the DB driver, but if any of theConfig
struct fields are pointers, we have the same problem...NewConfig()
method for creating configs with unexported struct fields.Config
struct fields may make sharing config between composed/dependent drivers harderIdeas:
context.Context
as the first param forDriver
receiver functionscontext.Context
?Open
method on theDriver
interface take aurl.URL
struct instead of astring
EnsureVersionTable()
methodMetadata()
methodDrop()
methodmigrate
to manage version and metadata table schemasThe text was updated successfully, but these errors were encountered: