Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn implements sql/driver Conn interface
func (*Conn) Close ¶
Close invalidates and potentially stops any current prepared statements and transactions, marking this connection as no longer in use.
Because the sql package maintains a free pool of connections and only calls Close when there's a surplus of idle connections, it shouldn't be necessary for drivers to do their own connection caching.
type Driver ¶
type Driver struct { }
Driver is the driver entrypoint, implementing database/sql/driver interface
type DruidQuery ¶
type DruidQuery struct { Query string `json:"query"` ResultFormat string `json:"resultFormat"` Header bool `json:"header"` TypesHeader bool `json:"typesHeader"` }
DruidQuery JSON format on /druid/v2/sql
type Rows ¶
type Rows struct {
// contains filtered or unexported fields
}
func (*Rows) Columns ¶
Columns returns the names of the columns. The number of columns of the result is inferred from the length of the slice. If a particular column name isn't known, an empty string should be returned for that entry.
func (*Rows) HasNextResultSet ¶
HasNextResultSet implements driver.RowsNextResultSet
func (*Rows) Next ¶
Next is called to populate the next row of data into the provided slice. The provided slice will be the same size as the Columns() are wide.
func (*Rows) NextResultSet ¶
NextResultSet implements driver.RowsNextResultSet
type Stmt ¶
type Stmt struct {
// contains filtered or unexported fields
}
Stmt implements the Statement interface of sql/driver
func (*Stmt) Close ¶
Close closes the statement.
As of Go 1.1, a Stmt will not be closed if it's in use by any queries.
func (*Stmt) NumInput ¶
NumInput returns the number of placeholder parameters.
If NumInput returns >= 0, the sql package will sanity check argument counts from callers and return errors to the caller before the statement's Exec or Query methods are called.
NumInput may also return -1, if the driver doesn't know its number of placeholders. In that case, the sql package will not sanity check Exec or Query argument counts.