Documentation ¶
Overview ¶
Package sdtabledata 将一个数据库表的数据保存在一个目录中,组织规范参见README.md
Index ¶
- func ListRows(src Source) ([]string, error)
- func LoadAll(src Source, opts *LoadOptions) ([]sdjson.Object, error)
- func LoadAllT[T any](src Source, mapper func(sdjson.Object) (T, error), opts *LoadOptions) ([]T, error)
- func LoadOne(src Source, row string, opts *LoadOptions) (sdjson.Object, error)
- func LoadOneT[T any](src Source, dir string, row string, mapper func(sdjson.Object) (T, error), ...) (T, error)
- func LoadSome(src Source, rows []string, opts *LoadOptions) ([]sdjson.Object, error)
- func LoadSomeT[T any](src Source, rows []string, mapper func(sdjson.Object) (T, error), ...) ([]T, error)
- type LoadOptions
- type Modifier
- type ModifierFunc
- type Modifiers
- type ObjectStoreOptions
- type Source
- type StoreFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LoadOptions ¶
type ModifierFunc ¶
func ExpandColumnShellLikeV ¶
func ExpandColumnShellLikeV(col string, vars map[string]string) ModifierFunc
func ExpandColumnsShellLikeV ¶
func ExpandColumnsShellLikeV(cols []string, vars map[string]string) ModifierFunc
func SetColumn ¶
func SetColumn(col string, v any) ModifierFunc
func SetColumns ¶
func SetColumns(colVals map[string]any) ModifierFunc
type ObjectStoreOptions ¶
type StoreFile ¶
func ObjectStore ¶
func ObjectStore(store sdobjectstore.Store, opts *ObjectStoreOptions) StoreFile
Click to show internal directories.
Click to hide internal directories.