Documentation ¶
Index ¶
- Constants
- Variables
- func CreateField(schema, table, fielName, kind, defaultValue string) error
- func CreateIdT(schema, table string) error
- func CreateIndex(schema, table, field string) error
- func CreateRecyclig(schema, table string) error
- func DeleteMigration(name string, version int) (Item, error)
- func GetCode(tag, prefix string) string
- func GetMarterNodeById(db int, id string) (Item, error)
- func GetMigration(name string, version int) (Item, error)
- func GetMigrationVersion(schema, name string) (int, error)
- func GetMode() (Item, error)
- func GetSerie(tag string) int
- func GetSerieLast(tag string) int
- func InitCore() error
- func InitMigratios() error
- func InitMode() error
- func InitModel(model *Model) error
- func InitRecycling() error
- func InitReference() error
- func InitSeries() error
- func InitSync() error
- func JoinToMaster() error
- func SetMigration(schema, name string, version int, description string, migration string) (Item, error)
- func SetModeParams(mode int, driver, host string, port int, dbname, user, password string) (Item, error)
- func SetReference(references []*ReferenceValue)
- func SetSerieValue(db int, tag string, val int) (int, error)
- func SyncSeries(masterIdx int, c chan int) error
- func UpSetMasterNode(db int, id string, mode int, driver, host string, port int, ...) (Item, error)
- type Core
Constants ¶
View Source
const ModeBackup = 3
View Source
const ModeBridge = 3
View Source
const ModeIdle = 1 /** Libre */
View Source
const ModeNode = 2
View Source
const ModeNone = 0 /** Node */
* * Mode * Handler for CRUD data
Variables ¶
View Source
var (
SchemaCore *Schema
)
Functions ¶
func CreateField ¶
func CreateIndex ¶
func CreateRecyclig ¶
func DeleteMigration ¶
func GetMarterNodeById ¶
func GetMigrationVersion ¶
func GetSerieLast ¶
func InitMigratios ¶
func InitMigratios() error
func InitRecycling ¶
func InitRecycling() error
func InitReference ¶
func InitReference() error
func InitSeries ¶
func InitSeries() error
func JoinToMaster ¶
func JoinToMaster() error
func SetMigration ¶
func SetModeParams ¶
func SyncSeries ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.