Open dhui opened 6 years ago
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.
Should support for DROP
be removed? https://github.com/golang-migrate/migrate/issues/193#issuecomment-475848534
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 schemas