Documentation
¶
Index ¶
- Variables
- func GetUri(o *client.Options) string
- func OpenDB(cliOpts *client.Options) *sql.DB
- func ParseConfig(uri string) (*client.Options, error)
- func RenderValue(op interface{}) interface{}
- 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) CheckNamedValue(nv *driver.NamedValue) error
- func (c *Conn) Close() error
- func (c *Conn) ExecContext(ctx context.Context, query string, argsV []driver.NamedValue) (driver.Result, error)
- func (c *Conn) GetDriver() *Driver
- func (c *Conn) GetImmuClient() client.ImmuClient
- func (c *Conn) GetToken() string
- func (c *Conn) Prepare(query string) (driver.Stmt, error)
- func (c *Conn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error)
- func (c *Conn) QueryContext(ctx context.Context, query string, argsV []driver.NamedValue) (driver.Rows, error)
- func (c *Conn) ResetSession(ctx context.Context) error
- type ConnConfig
- type Connector
- type DBOption
- type Driver
- type Rows
- func (r *Rows) Close() error
- func (r *Rows) ColumnTypeDatabaseTypeName(index int) string
- func (r *Rows) ColumnTypeLength(index int) (int64, bool)
- func (r *Rows) ColumnTypePrecisionScale(index int) (precision, scale int64, ok bool)
- func (r *Rows) ColumnTypeScanType(index int) reflect.Type
- func (r *Rows) Columns() []string
- func (r *Rows) Next(dest []driver.Value) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadQueryString = errors.New("bad query string. use format immudb://username:secret@host:port/db")
View Source
var ErrFloatValuesNotSupported = errors.New("float values are not yet supported by immudb")
View Source
var ErrNotImplemented = errors.New("not implemented")
Functions ¶
func RenderValue ¶
func RenderValue(op interface{}) interface{}
Types ¶
type Conn ¶
type Conn struct {
Token string
// contains filtered or unexported fields
}
func (*Conn) CheckNamedValue ¶
func (c *Conn) CheckNamedValue(nv *driver.NamedValue) error
func (*Conn) ExecContext ¶
func (*Conn) GetImmuClient ¶
func (c *Conn) GetImmuClient() client.ImmuClient
Conn returns the underlying client.ImmuClient
func (*Conn) PrepareContext ¶
func (*Conn) QueryContext ¶
type ConnConfig ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
type Rows ¶
type Rows struct {
// contains filtered or unexported fields
}
func (*Rows) ColumnTypeDatabaseTypeName ¶
ColumnTypeDatabaseTypeName
func (*Rows) ColumnTypeLength ¶
ColumnTypeLength If length is not limited other than system limits, it should return math.MaxInt64
func (*Rows) ColumnTypePrecisionScale ¶
ColumnTypePrecisionScale should return the precision and scale for decimal types. If not applicable, ok should be false.
func (*Rows) ColumnTypeScanType ¶
ColumnTypeScanType returns the value type that can be used to scan types into.
Click to show internal directories.
Click to hide internal directories.