Documentation
¶
Overview ¶
Package iotdbsql provides a deliberately small database/sql bridge over a shared official IoTDB client pool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPreparedStatementsUnsupported = errors.New("iotdb: prepared statements are not supported by this adapter")
ErrPreparedStatementsUnsupported reports prepared-statement usage.
View Source
var ErrTransactionsUnsupported = errors.New("iotdb: transactions are not supported; configure GORM SkipDefaultTransaction=true")
ErrTransactionsUnsupported reports relational transaction usage against IoTDB.
Functions ¶
Types ¶
type Binder ¶
type Binder struct {
TimePrecision TimePrecision
}
Binder safely renders value literals because the official client exposes SQL strings.
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector creates lightweight database/sql connections sharing one backend pool.
func NewConnector ¶
NewConnector creates a bridge connector around an already-owned backend.
type TimePrecision ¶
type TimePrecision uint8
TimePrecision controls conversion of time.Time bind values to IoTDB integers.
const ( // Milliseconds is IoTDB's common default timestamp precision. Milliseconds TimePrecision = iota // Microseconds converts timestamps to Unix microseconds. Microseconds // Nanoseconds converts timestamps to Unix nanoseconds. Nanoseconds )
Click to show internal directories.
Click to hide internal directories.