Documentation
¶
Index ¶
- Variables
- func GenerateStatementName() string
- func IsCsvqValue(v interface{}) bool
- func NewCompositeError(errs []error) error
- func NewStmt(ctx context.Context, proc *query.Processor, queryString string) (driver.Stmt, error)
- func NewTx(proc *query.Processor) (driver.Tx, error)
- func SetOutFile(w io.Writer)
- func SetStdin(r io.ReadCloser) error
- func SetStdinContext(ctx context.Context, r io.ReadCloser) error
- func SetStdout(w io.WriteCloser)
- type Boolean
- type CompositeError
- type Conn
- func (c *Conn) Begin() (driver.Tx, error)
- func (c *Conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error)
- func (c *Conn) Close() error
- func (c *Conn) ExecContext(ctx context.Context, queryString string, args []driver.NamedValue) (driver.Result, error)
- func (c *Conn) Prepare(queryString string) (driver.Stmt, error)
- func (c *Conn) PrepareContext(ctx context.Context, queryString string) (driver.Stmt, error)
- func (c *Conn) QueryContext(ctx context.Context, queryString string, args []driver.NamedValue) (driver.Rows, error)
- type Connector
- type DSN
- type Datetime
- type Driver
- type Float
- type Integer
- type Null
- type Result
- type Rows
- type Stmt
- func (stmt *Stmt) CheckNamedValue(nv *driver.NamedValue) error
- func (stmt *Stmt) Close() error
- func (stmt *Stmt) ColumnConverter(_ int) driver.ValueConverter
- func (stmt *Stmt) Exec(args []driver.Value) (driver.Result, error)
- func (stmt *Stmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)
- func (stmt *Stmt) NumInput() int
- func (stmt *Stmt) Query(args []driver.Value) (driver.Rows, error)
- func (stmt *Stmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error)
- type String
- type Tx
- type Value
- type ValueConverter
Constants ¶
This section is empty.
Variables ¶
View Source
var DSNParseErr = errors.New("incorrect data source name")
Functions ¶
func GenerateStatementName ¶
func GenerateStatementName() string
func IsCsvqValue ¶
func IsCsvqValue(v interface{}) bool
func NewCompositeError ¶
func SetOutFile ¶
func SetStdin ¶
func SetStdin(r io.ReadCloser) error
func SetStdinContext ¶
func SetStdinContext(ctx context.Context, r io.ReadCloser) error
func SetStdout ¶
func SetStdout(w io.WriteCloser)
Types ¶
type Boolean ¶
type Boolean struct {
// contains filtered or unexported fields
}
func (Boolean) PrimitiveType ¶
func (t Boolean) PrimitiveType() parser.PrimitiveType
type CompositeError ¶
type CompositeError struct {
Errors []error
}
func (CompositeError) Error ¶
func (e CompositeError) Error() string
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) ExecContext ¶
func (*Conn) PrepareContext ¶
type Datetime ¶
type Datetime struct {
// contains filtered or unexported fields
}
func (Datetime) PrimitiveType ¶
func (t Datetime) PrimitiveType() parser.PrimitiveType
type Float ¶
type Float struct {
// contains filtered or unexported fields
}
func (Float) PrimitiveType ¶
func (t Float) PrimitiveType() parser.PrimitiveType
type Integer ¶
type Integer struct {
// contains filtered or unexported fields
}
func (Integer) PrimitiveType ¶
func (t Integer) PrimitiveType() parser.PrimitiveType
type Null ¶
type Null struct { }
func (Null) PrimitiveType ¶
func (t Null) PrimitiveType() parser.PrimitiveType
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
func (Result) LastInsertId ¶
func (Result) RowsAffected ¶
type Rows ¶
type Rows struct {
// contains filtered or unexported fields
}
func (*Rows) HasNextResultSet ¶
func (*Rows) NextResultSet ¶
type Stmt ¶
type Stmt struct {
// contains filtered or unexported fields
}
func (*Stmt) CheckNamedValue ¶
func (stmt *Stmt) CheckNamedValue(nv *driver.NamedValue) error
func (*Stmt) ColumnConverter ¶
func (stmt *Stmt) ColumnConverter(_ int) driver.ValueConverter
func (*Stmt) ExecContext ¶
func (*Stmt) QueryContext ¶
type String ¶
type String struct {
// contains filtered or unexported fields
}
func (String) PrimitiveType ¶
func (t String) PrimitiveType() parser.PrimitiveType
type Value ¶
type Value interface { Value() (driver.Value, error) PrimitiveType() parser.PrimitiveType }
type ValueConverter ¶
type ValueConverter struct { }
func (ValueConverter) ConvertValue ¶
func (c ValueConverter) ConvertValue(v interface{}) (driver.Value, error)
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
csvq-driver
Usage: $ cd $GOPATH/src/github.com/mithrandie/csvq-driver $ go build ./example/csvq-driver/csvq-driver-example.go $ ./csvq-driver-example -r ./example/data
|
Usage: $ cd $GOPATH/src/github.com/mithrandie/csvq-driver $ go build ./example/csvq-driver/csvq-driver-example.go $ ./csvq-driver-example -r ./example/data |
replace-io
Usage: $ cd $GOPATH/src/github.com/mithrandie/csvq-driver $ go build ./example/csvq-driver/csvq-replace-io-example.go $ ./csvq-replace-io-example
|
Usage: $ cd $GOPATH/src/github.com/mithrandie/csvq-driver $ go build ./example/csvq-driver/csvq-replace-io-example.go $ ./csvq-replace-io-example |
Click to show internal directories.
Click to hide internal directories.