fs

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDB added in v0.2.1

func AddDB(name, dir string) error

func AddTable added in v0.2.1

func AddTable(name, db, dir string) error

func CopyDB

func CopyDB(oldName, name, dir string) error

func CopyTable

func CopyTable(oldName, name, db, dir string) error

func DeleteDB

func DeleteDB(name, dir string) error

func DeleteTable

func DeleteTable(name, db, dir string) error

func GetDBs

func GetDBs(dir string) ([]string, error)

func GetTable

func GetTable(name, db, dir string) (table.Table, error)

func GetTables

func GetTables(db, dir string) ([]string, error)

func ModifyTable

func ModifyTable(data table.Table, name string, db string, dir string) error

func RenameDB added in v0.2.1

func RenameDB(oldName, name, dir string) error

func RenameTable added in v0.2.1

func RenameTable(oldName, name, db, dir string) error

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"`
}

func Config

func Config(location string) (Conf, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL