Documentation ¶
Index ¶
- type Driver
- func (_m *Driver) Close() error
- func (_m *Driver) Drop() error
- func (_m *Driver) Lock() error
- func (_m *Driver) Open(url string) (database.Driver, error)
- func (_m *Driver) Run(migration io.Reader) error
- func (_m *Driver) SetVersion(version int, dirty bool) error
- func (_m *Driver) Unlock() error
- func (_m *Driver) Version() (int, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
Driver is an autogenerated mock type for the Driver type
func NewDriver ¶
func NewDriver(t mockConstructorTestingTNewDriver) *Driver
NewDriver creates a new instance of Driver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Driver) SetVersion ¶
SetVersion provides a mock function with given fields: version, dirty
Click to show internal directories.
Click to hide internal directories.