{"modulePath":"github.com/apache/iotdb-client-go/v2","version":"v2.0.10","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package iotdb_go\n\n## Variables\n\n```go\nvar (\n\tErrBatchInvalid              = errors.New(\"iotdb: batch is invalid. check appended data is correct\")\n\tErrBatchAlreadySent          = errors.New(\"iotdb: batch has already been sent\")\n\tErrBatchNotSent              = errors.New(\"iotdb: invalid retry, batch not sent yet\")\n\tErrAcquireConnTimeout        = errors.New(\"iotdb: acquire conn timeout. you can increase the number of max open conn or the dial timeout\")\n\tErrUnsupportedServerRevision = errors.New(\"iotdb: unsupported server revision\")\n\tErrBindMixedParamsFormats    = errors.New(\"iotdb [bind]: mixed named, numeric or positional parameters\")\n\tErrAcquireConnNoAddress      = errors.New(\"iotdb: no valid address supplied\")\n\tErrServerUnexpectedData      = errors.New(\"code: 101, message: Unexpected packet Data received from client\")\n\tErrConnectionClosed          = errors.New(\"iotdb: connection is closed\")\n\tErrTransactionsUnsupported   = errors.New(\"iotdb: transactions are not supported\")\n)\n```\n\n```go\nvar (\n\tErrInvalidValueInNamedDateValue = errors.New(\"invalid value in NamedDateValue for query parameter\")\n\tErrUnsupportedQueryParameter    = errors.New(\"unsupported query parameter type\")\n)\n```\n\n```go\nvar (\n\tErrInvalidTimezone = errors.New(\"invalid timezone value\")\n)\n```\n\n## Functions\n\n```go\nfunc DateNamed(name string, value time.Time, scale TimeUnit) driver.NamedDateValue\n```\n\n```go\nfunc Named(name string, value any) driver.NamedValue\n```\n\n## Types\n\n```go\ntype ArraySet []any\n```\n\n```go\ntype AsyncOptions struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype ClientInfo struct {\n\tProducts []struct {\n\t\tName    string\n\t\tVersion string\n\t}\n\n\tComment []string\n}\n```\n\n```go\nfunc (a ClientInfo) Append(b ClientInfo) ClientInfo\n```\nAppend returns a new copy of the combined ClientInfo structs\n\n```go\ntype ColumnNameAndType struct {\n\tName string\n\tType string\n}\n```\nColumnNameAndType represents a column name and type\n\n```go\ntype ConnOpenStrategy uint8\n```\n\n```go\nconst (\n\tConnOpenInOrder ConnOpenStrategy = iota\n\tConnOpenRoundRobin\n\tConnOpenRandom\n)\n```\n\n```go\ntype GroupSet struct {\n\tValue []any\n}\n```\n\n```go\ntype Options struct {\n\tclient.PoolConfig\n\tDebug                           bool\n\tClientInfo                      ClientInfo\n\tAddr                            []string\n\tConnOpenStrategy                ConnOpenStrategy\n\tDialContext                     func(ctx context.Context, addr string) (net.Conn, error)\n\tTLS                             *tls.Config\n\tDialTimeout                     time.Duration                 // default 30 second\n\tDebugf                          func(format string, v ...any) // only works when Debug is true\n\tPoolMaxSize                     *int\n\tPoolConnectionTimeoutInMs       *int\n\tPoolWaitToGetSessionTimeoutInMs *int\n\tPoolEnableCompression           *bool\n}\n```\n\n```go\nfunc ParseDSN(dsn string) (*Options, error)\n```\n\n```go\ntype Parameters map[string]string\n```\n\n```go\ntype QueryOption func(*QueryOptions) error\n```\n\n```go\ntype QueryOptions struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype Settings map[string]any\n```\n\n```go\ntype TimeUnit uint8\n```\n\n```go\nconst (\n\tSeconds TimeUnit = iota\n\tMilliSeconds\n\tMicroSeconds\n\tNanoSeconds\n)\n```\n\n","path":"github.com/apache/iotdb-client-go/v2/database","name":"iotdb_go","synopsis":"","isRedistributable":true}
