sql

package
v3.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, m map[string]any) (preferences.Manager, error)

New returns an instance of the cbox sql preferences manager.

Types

type Config added in v3.4.0

type Config struct {
	config.Database `mapstructure:",squash"`
}

func (*Config) ApplyDefaults added in v3.4.0

func (c *Config) ApplyDefaults()

type Preference added in v3.2.0

type Preference struct {
	gorm.Model
	UserId      string `gorm:"size:255;index:i_user_id;uniqueIndex:i_unique"`
	Namespace   string `gorm:"size:255;index:i_namespace;uniqueIndex:i_unique"`
	ConfigKey   string `gorm:"size:255;index:i_config_key;uniqueIndex:i_unique"`
	ConfigValue string
}

Jump to

Keyboard shortcuts

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