Documentation
¶
Overview ¶
Package config manage sqly configuration
Package config manage sqly configuration
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version is sqly command version. Version value is assigned by LDFLAGS. Version string )
Functions ¶
func GetVersion ¶ added in v0.0.6
func GetVersion() string
GetVersion return sqly command version. Version global variable is set by ldflags.
Types ¶
type Arg ¶
type Arg struct { // FilePath is CSV file paths that are imported into the DB. FilePaths []string // HelpFlag is flag whethe print usage or not (for --help option) HelpFlag bool // VersionFlag is flag whethe print version or not (for --version option) VersionFlag bool // Query is SQL query (for --sql option) Query string // Usage print help message Usage func() // Version print version message Version func() }
Arg is a structure for managing options and arguments
type Config ¶ added in v0.0.5
type Config struct {
HistoryDBPath string `env:"SQLY_HISTORY_DB"`
}
Config is sqly configuration.
type HistoryDB ¶ added in v0.0.5
HistoryDB is *sql.DB for sqly shell history.
func NewHistoryDB ¶ added in v0.0.5
NewHistoryDB create *sql.DB for history. The return function is the function to close the DB.
Click to show internal directories.
Click to hide internal directories.