Versions in this module Expand all Collapse all v0 v0.1.8 Jun 18, 2021 Changes in this version + var ErrBadType = errors.New("invalid type given") + var ErrInvalidIsolationLevel = errors.New("tds: invalid or unsupported isolation level") + var ErrNoReadOnly = errors.New("tds: readonly is unsupported") + var ErrNonNullable = errors.New("trying to insert null values into non null column") + var ErrOverFlow = errors.New("overflow when converting to database type") + var ErrUnsupportedPassWordEncrytion = errors.New("tds: login failed. Unsupported encryption") + func RegisterEncoding(sybaseCharsetName string, e encoding.Encoding) + type Conn struct + func NewConn(dsn string) (*Conn, error) + func (c *Conn) SetErrorhandler(fn func(s SybError) bool) + func (c Conn) GetEnv() map[string]string + func (s Conn) Begin() (driver.Tx, error) + func (s Conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error) + func (s Conn) Close() error + func (s Conn) Commit() error + func (s Conn) Exec(query string, args []driver.Value) (driver.Result, error) + func (s Conn) ExecContext(ctx context.Context, query string, namedArgs []driver.NamedValue) (driver.Result, error) + func (s Conn) Ping(ctx context.Context) error + func (s Conn) Prepare(query string) (driver.Stmt, error) + func (s Conn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error) + func (s Conn) Query(query string, args []driver.Value) (driver.Rows, error) + func (s Conn) QueryContext(ctx context.Context, query string, namedArgs []driver.NamedValue) (driver.Rows, error) + func (s Conn) Rollback() error + func (s Conn) SelectValue(ctx context.Context, query string) (value interface{}, err error) + type ErrorHandler interface + SetErrorhandler func(fn func(s SybError) bool) + type Num struct + func (n *Num) Scan(src interface{}) error + func (n Num) Rat() big.Rat + func (n Num) String() string + type Result struct + func (r *Result) LastInsertId() (int64, error) + func (r Result) RowsAffected() (int64, error) + type Rows struct + func (r *Rows) Close() (err error) + func (r *Rows) Next(dest []driver.Value) (err error) + func (r *Rows) NextResultSet() error + func (r Rows) AffectedRows() (count int, ok bool) + func (r Rows) ColumnAutoIncrement(index int) (bool, bool) + func (r Rows) ColumnHidden(index int) (bool, bool) + func (r Rows) ColumnKey(index int) (bool, bool) + func (r Rows) ColumnTypeDatabaseTypeName(index int) string + func (r Rows) ColumnTypeLength(index int) (int64, bool) + func (r Rows) ColumnTypeNullable(index int) (bool, bool) + func (r Rows) ColumnTypePrecisionScale(index int) (int64, int64, bool) + func (r Rows) ColumnTypeScanType(index int) reflect.Type + func (r Rows) Columns() (columns []string) + func (r Rows) ComputeByList() (list []int, ok bool) + func (r Rows) ComputedColumnInfo(index int) (operator string, operand int, ok bool) + func (r Rows) HasNextResultSet() bool + func (r Rows) ReturnStatus() (returnStatus int, ok bool) + type Stmt struct + ID int64 + func (st *Stmt) Close() error + func (st *Stmt) Exec(args []driver.Value) (res driver.Result, err error) + func (st *Stmt) ExecContext(ctx context.Context, namedArgs []driver.NamedValue) (res driver.Result, err error) + func (st *Stmt) Query(args []driver.Value) (driver.Rows, error) + func (st *Stmt) QueryContext(ctx context.Context, namedArgs []driver.NamedValue) (driver.Rows, error) + func (st Stmt) ColumnConverter(idx int) driver.ValueConverter + func (st Stmt) NumInput() int + type SybDriver struct + IsError func(s SybError) bool + func (d *SybDriver) Open(dsn string) (driver.Conn, error) + func (d *SybDriver) SetErrorhandler(fn func(s SybError) bool) + type SybError struct + HasEed uint8 + LineNumber int16 + Message string + MsgNumber int32 + Procedure string + SQLState string + Server string + Severity int8 + State int8 + TranState uint16 + func (e SybError) Error() string