schema

package
v0.0.0-...-58bd1cf Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSchema

func CheckSchema(name string) (bool, error)

func CommentSchema

func CommentSchema(name, comment string) error

func CountSchemas

func CountSchemas(sq *xsm.SchemaQuery) (total int, err error)

func CreateSchema

func CreateSchema(name, comment string) error

func DefaultSchema

func DefaultSchema() string

func DeleteSchema

func DeleteSchema(name string) error

func ExistsSchema

func ExistsSchema(s string) (bool, error)

func FindSchemas

func FindSchemas(sq *xsm.SchemaQuery) (schemas []*xsm.SchemaInfo, err error)

func IsMultiTenant

func IsMultiTenant() bool

func Iterate

func Iterate(itf func(sm Schema) error) error

func ListSchemas

func ListSchemas() ([]string, error)

func ReadConfigFile

func ReadConfigFile() ([]*models.Config, error)

func RenameSchema

func RenameSchema(_old, _new string) error

func SM

func SM() xsm.SchemaManager

func SSM

func SSM(db *sqlx.DB) xsm.SchemaManager

Types

type Schema

type Schema string

func (Schema) ExecSQL

func (sm Schema) ExecSQL(sqls string) error

func (Schema) FQDN

func (sm Schema) FQDN() string

func (Schema) FS

func (sm Schema) FS() xfs.XFS

func (Schema) GetConfigMap

func (sm Schema) GetConfigMap() map[string]string

func (Schema) InitSchema

func (sm Schema) InitSchema() error

func (Schema) IsDefault

func (sm Schema) IsDefault() bool

func (Schema) JC

func (sm Schema) JC() xjm.JobChainer

func (Schema) JM

func (sm Schema) JM() xjm.JobManager

func (Schema) Logger

func (sm Schema) Logger(name string) log.Logger

func (Schema) MigrateConfig

func (sm Schema) MigrateConfig(configs []*models.Config) error

func (Schema) MigrateSchema

func (sm Schema) MigrateSchema() error

func (Schema) MigrateSuper

func (sm Schema) MigrateSuper() error

func (Schema) Prefix

func (sm Schema) Prefix() string

func (Schema) PurgeConfig

func (sm Schema) PurgeConfig()

func (Schema) ResetSequence

func (sm Schema) ResetSequence(db sqlx.Sqlx, table string, starts ...int64) error

func (Schema) SFS

func (sm Schema) SFS(db sqlx.Sqlx) xfs.XFS

func (Schema) SJC

func (sm Schema) SJC(db sqlx.Sqlx) xjm.JobChainer

func (Schema) SJM

func (sm Schema) SJM(db sqlx.Sqlx) xjm.JobManager

func (Schema) Table

func (sm Schema) Table(s string) string

func (Schema) TableConfigs

func (sm Schema) TableConfigs() string

func (Schema) TableFiles

func (sm Schema) TableFiles() string

func (Schema) TableJobChains

func (sm Schema) TableJobChains() string

func (Schema) TableJobLogs

func (sm Schema) TableJobLogs() string

func (Schema) TableJobs

func (sm Schema) TableJobs() string

func (Schema) TablePets

func (sm Schema) TablePets() string

func (Schema) TableUsers

func (sm Schema) TableUsers() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳