config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package config manage sqly configuration

Index

Constants

This section is empty.

Variables

View Source
var Version string

Version is sqly command version. Version value is assigned by LDFLAGS.

Functions

func NewDB

func NewDB() (*sql.DB, func(), error)

NewDB create *sql.DB for SQLite3. SQLite3 store data in memory. The return function is the function to close the DB.

Types

type Arg

type Arg struct {
	// FilePath is CSV file paths that are imported into the DB.
	FilePaths []string
	// HelpFlag is HelpFlag flag.
	HelpFlag bool
	// Usage print help message
	Usage func()
}

Arg is a structure for managing options and arguments

func NewArg

func NewArg() (*Arg, error)

NewArg return *Arg that is assigned the result of parsing os.Args.

Jump to

Keyboard shortcuts

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