Versions in this module Expand all Collapse all v1 v1.0.1 Nov 22, 2021 v1.0.0 Nov 21, 2021 Changes in this version + func NewOpen(opts ...Option) (*sql.DB, error) + type Conn struct + func (c *Conn) Begin() (driver.Tx, error) + func (c *Conn) BeginTx(ctx context.Context, _ driver.TxOptions) (driver.Tx, error) + func (c *Conn) Close() error + func (c *Conn) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error) + func (c *Conn) Prepare(query string) (driver.Stmt, error) + func (c *Conn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error) + func (c *Conn) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error) + type DbEngine int + const DbEngineMysql + const DbEnginePostgres + func ParseDbEngine(name string) (DbEngine, error) + func (x *DbEngine) Scan(value interface{}) (err error) + func (x *DbEngine) UnmarshalText(text []byte) error + func (x DbEngine) MarshalText() ([]byte, error) + func (x DbEngine) String() string + func (x DbEngine) Value() (driver.Value, error) + type Driver struct + func (d *Driver) Open(_ string) (driver.Conn, error) + type NullDbEngine struct + DbEngine DbEngine + Set bool + Valid bool + func NewNullDbEngine(val interface{}) (x NullDbEngine) + func (n *NullDbEngine) UnmarshalJSON(b []byte) error + func (n NullDbEngine) MarshalJSON() ([]byte, error) + func (x *NullDbEngine) Scan(value interface{}) (err error) + func (x NullDbEngine) Value() (driver.Value, error) + type Option interface + func WithContinueAfterTimeout(c bool) Option + func WithDataServiceApiOption(dataServiceApi rdsdataserviceiface.RDSDataServiceAPI) Option + func WithDatabase(c string) Option + func WithDbEngine(c DbEngine) Option + func WithResourceArn(c string) Option + func WithSchema(c string) Option + func WithSecretArn(c string) Option + type Result struct + func (r *Result) Close() error + func (r *Result) Columns() []string + func (r *Result) LastInsertId() (int64, error) + func (r *Result) Next(dest []driver.Value) error + func (r *Result) RowsAffected() (int64, error) + type Stmt struct + func (s *Stmt) Close() error + func (s *Stmt) Exec(_ []driver.Value) (driver.Result, error) + func (s *Stmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error) + func (s *Stmt) NumInput() int + func (s *Stmt) Query(_ []driver.Value) (driver.Rows, error) + func (s *Stmt) QueryContext(_ context.Context, _ []driver.NamedValue) (driver.Rows, error) + type Tx struct + func (t *Tx) Commit() error + func (t *Tx) Rollback() error