Documentation
¶
Overview ¶
Package gosqldriver implements the database/sql/driver interfaces for the the Hera golang driver
Package gosqldriver provides the Hera Go sql driver
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HeraConn ¶
type HeraConn interface { // manualy set the shard ID to which the SQL are executed. it is "sticky", it stays set for all the subsequent // SQLs, until ResetShardID() is called. When the shard ID is set, the shard autodiscovery is disabled SetShardID(shard int) error // resets the shard ID set by SetShardID ResetShardID() error // returns the number os shards GetNumShards() (int, error) // This is used for queries which don't have shard key. The format is "<key>=<value1>;<value2>;...<valuen>" SetShardKeyPayload(payload string) // Reset the state set via SetShardKeyPayload ResetShardKeyPayload() // Identifier used for logging, specific to a session of SQLs SetCalCorrID(corrID string) SetClientInfo(poolname string, host string) error SetClientInfoWithPoolStack(poolName string, host string, poolStack string) error }
HeraConn is an API extension for sql.Conn
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package tcp provides the Hera driver for Go's database/sql package
|
Package tcp provides the Hera driver for Go's database/sql package |
Package tls provides the Hera driver for Go's database/sql package
|
Package tls provides the Hera driver for Go's database/sql package |
Click to show internal directories.
Click to hide internal directories.