db

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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