Versions in this module Expand all Collapse all v4 v4.0.2 Jun 16, 2021 Changes in this version + const ApplicationName + const ApplicationSummary + const ApplicationVersion + var DefaultAddress = `127.0.0.1` + var DefaultPort = 29029 + var DefaultResultLimit = 25 + var DefaultUiDirectory = `embedded` + var MonitorCheckInterval = time.Duration(10) * time.Second + var NetrcFile = `` + func ApplySchemata(fileOrDirPath string, db Backend) error + func Dir(useLocal bool, name string) http.FileSystem + func FS(useLocal bool) http.FileSystem + func FSByte(useLocal bool, name string) ([]byte, error) + func FSMustByte(useLocal bool, name string) []byte + func FSMustString(useLocal bool, name string) string + func FSString(useLocal bool, name string) (string, error) + func LoadFixtures(fileOrDirPath string, db Backend) error + func LoadFixturesFromFile(filename string, db Backend) error + func LoadSchemata(fileOrDirPaths ...string) ([]*dal.Collection, error) + func LoadSchemataFromFile(filename string) ([]*dal.Collection, error) + func MustGetCollection(db Backend, name string) *dal.Collection + type Backend = backends.Backend + type Collection = dal.Collection + type Configuration struct + AutocreateCollections bool + Autoexpand bool + Backend string + Environments map[string]Configuration + Indexer string + func LoadConfigFile(path string) (Configuration, error) + func (self *Configuration) ForEnv(env string) Configuration + type ConnectOptions = backends.ConnectOptions + type DB interface + ApplySchemata func(fileOrDirPath string) error + AttachCollection func(*Collection) Model + C func(string) *Collection + GetBackend func() Backend + LoadFixtures func(fileOrDirPath string) error + Migrate func() error + Models func() []Model + SetBackend func(Backend) + func NewDatabase(connection string) (DB, error) + func NewDatabaseWithOptions(connection string, options ConnectOptions) (DB, error) + type Filter = filter.Filter + type Model = backends.Mapper + type Record = dal.Record + type RecordSet = dal.RecordSet + type Server struct + Address string + Autoexpand bool + ConnectOptions backends.ConnectOptions + ConnectionString string + UiDirectory string + func NewServer(connectionString ...string) *Server + func (self *Server) AddFixturePath(fileOrDirPath string) + func (self *Server) AddSchemaDefinition(fileOrDirPath string) + func (self *Server) ListenAndServe() error Other modules containing this package github.com/ozanturksever/pivot