sqlite

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ColumnNameFindings is a columnName of type findings.
	ColumnNameFindings columnName = "findings"
	// ColumnNameInstanceId is a columnName of type instance_id.
	ColumnNameInstanceId columnName = "instance_id"
	// ColumnNameUpdatedAt is a columnName of type updated_at.
	ColumnNameUpdatedAt columnName = "updated_at"
)

Variables

View Source
var ErrInvalidcolumnName = errors.New("not a valid columnName")

Functions

func ManagerWithClock

func ManagerWithClock(clock clockwork.Clock) managerOption

ManagerWithClock allows customising manager's clock.

func NewManager

func NewManager(dsn string, opts ...managerOption) (*manager, error)

NewManager returns a new SQLite database manager.

func ParsecolumnName

func ParsecolumnName(name string) (columnName, error)

ParsecolumnName attempts to convert a string to a columnName.

Types

type ErrInvalidConstructor

type ErrInvalidConstructor struct {
	// contains filtered or unexported fields
}

ErrInvalidConstructor should be used for invalid manager constructor errors.

func (ErrInvalidConstructor) Error

func (e ErrInvalidConstructor) Error() string

Jump to

Keyboard shortcuts

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