Versions in this module Expand all Collapse all v2 v2.7.2 Sep 6, 2023 v2.7.1 Jul 24, 2023 Changes in this version type DriverOpts + QueryFailTimes int v2.7.0 Jun 15, 2023 Changes in this version + func NewDriver(name string, dbdata Data, converters []sqlutil.Converter, opts DriverOpts) (TestDS, *SqlHandler) + type Column struct + DataType string + Kind any + Name string + type Data struct + Cols []Column + Rows [][]any + type DriverOpts struct + ConnectDelay int + ConnectError error + QueryDelay int + QueryError error + type SqlHandler struct + Data Data + Opts DriverOpts + State State + func NewDriverHandler(data Data, opts DriverOpts) SqlHandler + func (s *SqlHandler) Columns() []string + func (s *SqlHandler) Next(dest []driver.Value) error + func (s *SqlHandler) Ping(ctx context.Context) error + func (s *SqlHandler) Query(args []driver.Value) (driver.Rows, error) + func (s SqlHandler) Close() error + func (s SqlHandler) ColumnTypeDatabaseTypeName(index int) string + func (s SqlHandler) ColumnTypeScanType(index int) reflect.Type + type State struct + ConnectAttempts int + QueryAttempts int + type TestDS struct + func NewTestDS(openDBfn func() (*sql.DB, error), converters []sqlutil.Converter) TestDS + func (s TestDS) Open() (*sql.DB, error) Other modules containing this package github.com/grafana/sqlds/v3