Documentation
¶
Index ¶
- type Config
- type Driver
- type Result
- type Rows
- type Statement
- func (s *Statement) Close() error
- func (s *Statement) Exec(args []driver.Value) (driver.Result, error)
- func (s *Statement) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)
- func (s *Statement) NumInput() int
- func (s *Statement) Query(args []driver.Value) (driver.Rows, error)
- func (s *Statement) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
CredentialsFile string // Username
Endpoint string
APIKey string
CredentialJSON []byte
CredentialsURL string
CredID string //scy secret resource ID
CredentialsKey string
UserAgent string
ProjectID string // project ID
QuotaProject string
Scopes []string
Location string
DatabaseURL string
App string
url.Values
}
Config is a configuration parsed from a DSN string. If a new Config is created instead of being parsed from a DSN string, the NewConfig function should be used, which sets default values.
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
Result implements the driver.Result interface
func (*Result) LastInsertId ¶
LastInsertId returns the ID of the last inserted row
func (*Result) RowsAffected ¶
RowsAffected returns the number of rows affected by the query
type Rows ¶
type Rows struct {
// contains filtered or unexported fields
}
Rows implements the driver.Rows interface
func (*Rows) ColumnTypeDatabaseTypeName ¶
ColumnTypeDatabaseTypeName returns the database type name of the column
func (*Rows) ColumnTypeNullable ¶
ColumnTypeNullable reports whether the column may be null
func (*Rows) ColumnTypeScanType ¶
ColumnTypeScanType returns the ScanType of the column at the given index
type Statement ¶
type Statement struct {
SQL string
// contains filtered or unexported fields
}
Statement implements the driver.Stmt interface
func (*Statement) ExecContext ¶
func (s *Statement) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)
ExecContext executes a non-query statement with context
func (*Statement) QueryContext ¶
func (s *Statement) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error)
QueryContext executes a query statement with context