sqlite

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context, dbPath string) (*sql.DB, error)

Open обеспечивает работу SQLite БД.

Types

type ManagementSettingsRepository

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

ManagementSettingsRepository обеспечивает SQLite-backed для хранения настроек приложения.

func NewManagementSettingsRepository

func NewManagementSettingsRepository(db *sql.DB) (*ManagementSettingsRepository, error)

NewManagementSettingsRepository создаёт Repository, поддерживаемый sql.DB.

func (*ManagementSettingsRepository) Close

Close высвобождает ресурсы Repository.

func (*ManagementSettingsRepository) LoadSettings

LoadSettings читает настройки хранящиеся в БД.

func (*ManagementSettingsRepository) SaveSettings

SaveSettings сохраняет настройки в БД.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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