query

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrQueryNotFound = errors.New("SQL item not found in query file")

ErrQueryNotFound is "SQL item not found in query file" error.

Functions

func GetDefaultPath

func GetDefaultPath() string

GetDefaultPath is return default query file path.

Types

type Queries

type Queries struct {
	Query []Query
}

Queries struct have Query array variable

func LoadQuery

func LoadQuery(file string) (*Queries, error)

LoadQuery is the contents are loaded from "rds-try.query" file.

type Query

type Query struct {
	Name string `toml:"name"`
	Sql  string `toml:"sql"`
}

Query struct have Name and Sql variable

Jump to

Keyboard shortcuts

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