Documentation
¶
Overview ¶
Package sqlite defines the SQLite database functionality to operate with.
Index ¶
- Constants
- type SQLite
- func (s *SQLite) CloseConnection(_ context.Context) error
- func (s *SQLite) Connect(connectionData sqlfw.ConnectionData) (*sqlx.DB, error)
- func (s *SQLite) GetConnectionData(config any) (*sqlfw.ConnectionData, error)
- func (s *SQLite) GetMigrationVersion(ctx context.Context) (*sqlfw.GetVersionOutput, error)
- func (s *SQLite) InitMigration(ctx context.Context, migrationsTablePrefix *string) error
- func (s *SQLite) OpenConnection(ctx context.Context) error
- func (s *SQLite) RunMigration(ctx context.Context, migration string) error
- func (s *SQLite) SetMigrationVersion(ctx context.Context, input sqlfw.SetVersionInput) error
- func (s *SQLite) TranslateError(_ context.Context, err error, defaultError error) error
Constants ¶
View Source
const (
DialectName = "sqlite"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLite ¶
type SQLite struct {
// contains filtered or unexported fields
}
func (*SQLite) GetConnectionData ¶
func (s *SQLite) GetConnectionData(config any) (*sqlfw.ConnectionData, error)
func (*SQLite) GetMigrationVersion ¶
func (*SQLite) InitMigration ¶
func (*SQLite) RunMigration ¶
func (*SQLite) SetMigrationVersion ¶
nolint:gosec
Click to show internal directories.
Click to hide internal directories.