Documentation
¶
Index ¶
- type Connection
- type DBService
- func (s *DBService) Close() error
- func (s *DBService) Create() *action.Create
- func (s *DBService) Downgrade() (*action.Downgrade, error)
- func (s *DBService) History() (*action.History, error)
- func (s *DBService) HistoryNew() (*action.HistoryNew, error)
- func (s *DBService) MigrationService() (*service.Migration, error)
- func (s *DBService) Redo() (*action.Redo, error)
- func (s *DBService) To() (*action.To, error)
- func (s *DBService) Upgrade() (*action.Upgrade, error)
- type FileNameBuilder
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection interface {
DSN() string
Driver() connection.Driver
Ping() error
QueryContext(ctx context.Context, query string, args ...any) (sqlex.Rows, error)
ExecContext(ctx context.Context, query string, args ...any) (sqlex.Result, error)
Transaction(ctx context.Context, txFn func(ctx context.Context) error) error
io.Closer
}
type DBService ¶
type DBService struct {
// contains filtered or unexported fields
}
func (*DBService) HistoryNew ¶
func (s *DBService) HistoryNew() (*action.HistoryNew, error)
func (*DBService) MigrationService ¶ added in v0.4.0
type FileNameBuilder ¶
Click to show internal directories.
Click to hide internal directories.