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
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
}
func (*Result) LastInsertId ¶
func (*Result) RowsAffected ¶
type Rows ¶
type Rows struct {
// contains filtered or unexported fields
}
func (*Rows) ColumnTypeDatabaseTypeName ¶
ColumnTypeDatabaseTypeName returns the database type name of the column
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
}
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
Click to show internal directories.
Click to hide internal directories.