db

package
v1.9.0 Latest Latest
Warning

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

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

Documentation

Overview

Package store provides database storage for package model

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertAvailableVariations added in v1.5.0

func InsertAvailableVariations(ctx context.Context, tx *sql.Tx, project model.Project) (err error)

Types

type Sqlite

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

func NewSqlite

func NewSqlite(ctx context.Context, dbPath string) (Sqlite, error)

func (Sqlite) DeactivateOverride

func (s Sqlite) DeactivateOverride(ctx context.Context, projectKey, flagKey string) (int, error)

func (Sqlite) DeleteDevProject

func (s Sqlite) DeleteDevProject(ctx context.Context, key string) (bool, error)

func (Sqlite) GetAvailableVariationsForProject added in v1.5.0

func (s Sqlite) GetAvailableVariationsForProject(ctx context.Context, projectKey string) (map[string][]model.Variation, error)

func (Sqlite) GetDevProject

func (s Sqlite) GetDevProject(ctx context.Context, key string) (*model.Project, error)

func (Sqlite) GetDevProjectKeys

func (s Sqlite) GetDevProjectKeys(ctx context.Context) ([]string, error)

func (Sqlite) GetOverridesForProject

func (s Sqlite) GetOverridesForProject(ctx context.Context, projectKey string) (model.Overrides, error)

func (Sqlite) InsertProject

func (s Sqlite) InsertProject(ctx context.Context, project model.Project) (err error)

func (Sqlite) UpdateProject

func (s Sqlite) UpdateProject(ctx context.Context, project model.Project) (bool, error)

func (Sqlite) UpsertOverride

func (s Sqlite) UpsertOverride(ctx context.Context, override model.Override) (model.Override, error)

Jump to

Keyboard shortcuts

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