store

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package store 提供对 setting.Store 的实现

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(mod string, db *orm.DB)

func NewDB

func NewDB(mod string, db *orm.DB) setting.Store

Types

type DB

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

func (*DB) Exists

func (g *DB) Exists(id string) (bool, error)

func (*DB) Insert

func (g *DB) Insert(id string, v any) error

func (*DB) Load

func (g *DB) Load(id string, v any) error

func (*DB) Update

func (g *DB) Update(id string, v any) error

Jump to

Keyboard shortcuts

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