Versions in this module Expand all Collapse all v0 v0.1.1 Mar 18, 2022 Changes in this version + const CHARSET_BIG5 + const CHARSET_EUCJP + const CHARSET_EUCKR + const CHARSET_GBK + const CHARSET_ISO1 + const CHARSET_SJIS + const CHARSET_UCS2BE + const CHARSET_UCS2LE + const CHARSET_UNKNOWN + const CHARSET_UTF8 + const CHARSET_WIN1 + const CHARSET_WIN2 + const E2BIG + const EACCES + const EAGAIN + const EBADF + const EBUSY + const ECHILD + const EDOM + const EEXIST + const EFAULT + const EFBIG + const EINTR + const EINVAL + const EISDIR + const EMFILE + const EMLINK + const ENFILE + const ENODEV + const ENOENT + const ENOEXEC + const ENOMEM + const ENOSPC + const ENOTBLK + const ENOTDIR + const ENOTTY + const ENXIO + const EPERM + const EPIPE + const EPROTO + const ERANGE + const EROFS + const ESPIPE + const ESRCH + const ETXTBSY + const EXDEV + const MAX_FIELD_COUNT + const VOID_POINTER_SIZE + var DEBUG_PRINT_SQL = true + var InvalidArgs = errors.New("rtdb: invalid args") + var InvalidConn = errors.New("rtdb: invalid connection") + var InvalidDSN = errors.New("rtdb: invalid DSN") + var NoAccess = errors.New("rtdb: insufficient permissions") + var NullPointer = errors.New("rtdb: null pointer") + var OutOfMemory = errors.New("rtdb: out of memory") + var ProtocolError = errors.New("rtdb: protocol processing error") + type AtomicBool uint32 + func (b *AtomicBool) IsSet() bool + func (b *AtomicBool) Set(v bool) + type AtomicError struct + func (e *AtomicError) Error() error + func (e *AtomicError) Set(v error) + type AtomicInt16 struct + func (i *AtomicInt16) Set(v int16) + func (i AtomicInt16) Get() (int16, bool) + type Config struct + Address string + Charset string + DBName string + DialTimeout time.Duration + Location *time.Location + Params map[string]string + ParseTime bool + Password string + Protocol string + ReadTimeout time.Duration + User string + WriteTimeout time.Duration + func NewConfig() *Config + func ParseDSN(dsn string) (config *Config, err error) + func (c *Config) HostAndPort() (string, int) + type FieldPtr *C.tsdb_v3_field_t + type MrFieldPtr *C.tsdb_ml_field_t + type ResultSetPtr *C.RTDB_RES_SET + type Row C.tsdb_row_t + type RowsPtr *C.tsdb_rows_t + type RtdbAdapter struct + func NewRtdbAdapter(host string, port int, user string, password string) *RtdbAdapter + func (a *RtdbAdapter) CgoConnect() error + func (a *RtdbAdapter) CgoDisconnect() error + func (a *RtdbAdapter) CgoFreeResult() error + func (a *RtdbAdapter) CgoKillMe() error + func (a *RtdbAdapter) CgoQuery(sql string, charset string, db string) error + func (a *RtdbAdapter) CgoStoreResult() error + func (a *RtdbAdapter) CleanUp() error + func (a *RtdbAdapter) FetchFields() []rtdbField + func (a *RtdbAdapter) FetchOne() (values []interface{}, err error) + func (a *RtdbAdapter) IsResultSetEmpty() bool + func (a *RtdbAdapter) ScanResult() error + type RtdbDriver struct + func (rd RtdbDriver) Open(dsn string) (driver.Conn, error) + func (rd RtdbDriver) OpenConnector(dsn string) (driver.Connector, error) v0.1.0 Feb 24, 2022