Documentation ¶
Index ¶
- func CopyDB(oldName, name, dir string) error
- func CopyTable(oldName, name, db, dir string) error
- func DeleteDB(name, dir string) error
- func DeleteTable(name, db, dir string) error
- func DetermineDatatype(datatype string) (any, error)
- func GetDBs(dir string) ([]string, error)
- func GetTables(db, dir string) ([]string, error)
- func ModifyTable(data Table, name string, db string, dir string) error
- func MoveDB(oldName, name, dir string) error
- func MoveTable(oldName, name, db, dir string) error
- func NewDB(name, dir string) error
- func NewTable(name, db, dir string) error
- type Column
- type Conf
- type Table
- type TableJSON
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteTable ¶
func DetermineDatatype ¶
Types ¶
type Conf ¶
type Conf struct { // Basic config Port string `json:"port"` Dir string `json:"dir"` LogDir string `json:"log_dir"` // HTTPS config HTTPSMode bool `json:"https"` SSLCert string `json:"cert"` SSLKey string `json:"key"` // Query config EnableGTSyntax bool `json:"gt_syntax"` EnableSQLSyntax bool `json:"sql_syntax"` }
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
func (Table) GetColumns ¶
func (Table) SetColumns ¶
Click to show internal directories.
Click to hide internal directories.