Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConnectionConfig ¶
type Driver ¶
type Driver interface { Open(ctx context.Context, dbType common.Engine, config ConnectionConfig) (Driver, error) Close(ctx context.Context) error Ping(ctx context.Context) error GetType() common.Engine GetDB() *sql.DB // QueryConn Used for execute readonly SELECT statement QueryConn(ctx context.Context, conn *sql.Conn, statement string, queryContext *QueryContext) ([]*v1pb.QueryResult, error) }
Driver is the interface for database driver
type QueryContext ¶
Click to show internal directories.
Click to hide internal directories.