sqlite

package
v0.0.0-...-29e199f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package sqlite defines the SQLite database functionality to operate with.

Index

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) CloseConnection

func (s *SQLite) CloseConnection(_ context.Context) error

func (*SQLite) Connect

func (s *SQLite) Connect(connectionData sqlfw.ConnectionData) (*sqlx.DB, error)

func (*SQLite) GetConnectionData

func (s *SQLite) GetConnectionData(config any) (*sqlfw.ConnectionData, error)

func (*SQLite) GetMigrationVersion

func (s *SQLite) GetMigrationVersion(ctx context.Context) (*sqlfw.GetVersionOutput, error)

func (*SQLite) InitMigration

func (s *SQLite) InitMigration(ctx context.Context, migrationsTablePrefix *string) error

func (*SQLite) OpenConnection

func (s *SQLite) OpenConnection(ctx context.Context) error

func (*SQLite) RunMigration

func (s *SQLite) RunMigration(ctx context.Context, migration string) error

func (*SQLite) SetMigrationVersion

func (s *SQLite) SetMigrationVersion(ctx context.Context, input sqlfw.SetVersionInput) error

nolint:gosec

func (*SQLite) TranslateError

func (s *SQLite) TranslateError(_ context.Context, err error, defaultError error) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL