Documentation
¶
Index ¶
- func NewOpen(opts ...Option) (*sql.DB, error)
- type Conn
- 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
- type Driver
- type NullDbEngine
- type Option
- 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
- type Stmt
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) ExecContext ¶
func (*Conn) PrepareContext ¶
type DbEngine ¶
type DbEngine int
DbEngine 크롤링 사이트 ENUM( mysql postgres )
func ParseDbEngine ¶
ParseDbEngine attempts to convert a string to a DbEngine
func (DbEngine) MarshalText ¶
MarshalText implements the text marshaller method
func (*DbEngine) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method
type NullDbEngine ¶
func NewNullDbEngine ¶
func NewNullDbEngine(val interface{}) (x NullDbEngine)
func (NullDbEngine) MarshalJSON ¶
func (n NullDbEngine) MarshalJSON() ([]byte, error)
MarshalJSON correctly serializes a NullDbEngine to JSON.
func (*NullDbEngine) Scan ¶
func (x *NullDbEngine) Scan(value interface{}) (err error)
Scan implements the Scanner interface.
func (*NullDbEngine) UnmarshalJSON ¶
func (n *NullDbEngine) UnmarshalJSON(b []byte) error
UnmarshalJSON correctly deserializes a NullDbEngine from JSON.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithDataServiceApiOption ¶
func WithDataServiceApiOption(dataServiceApi rdsdataserviceiface.RDSDataServiceAPI) Option
func WithDatabase ¶
func WithDbEngine ¶
func WithResourceArn ¶
func WithSchema ¶
func WithSecretArn ¶
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
func (*Result) LastInsertId ¶
func (*Result) RowsAffected ¶
type Stmt ¶
type Stmt struct {
// contains filtered or unexported fields
}
func (*Stmt) ExecContext ¶
func (*Stmt) NumInput ¶
NumInput returns the number of placeholder parameters.
If NumInput returns >= 0, the sql package will sanity check argument counts from callers and return errors to the caller before the statement's Exec or Query methods are called.
NumInput may also return -1, if the driver doesn't know its number of placeholders. In that case, the sql package will not sanity check Exec or Query argument counts.