Versions in this module Expand all Collapse all v1 v1.4.4 Jul 11, 2026 Changes in this version + const PdbgOutputDefaultBufSize + var DateTimeFormats = map[DTF]string + func WithCursor() outputBindOpt + func WithTypeCursor() outputBindOpt + func WithTypeVector() outputBindOpt + type CompatVector string + const CV_MYSQL + const CV_NULL + const CV_YASHAN + type DSInterval struct + Day int32 + DayTime time.Time + func NewDSInterval(day int32, dayTime time.Time) DSInterval + type DTF int8 + const Date + const DateTime + const DateTimeMicro + const DateTimeMicroZone + const DateTimeZone + const Time + const TimeMicro + type DebugConfigOpt func(*debugConfig) + func WithDebugCallTempalate(call string, args ...any) DebugConfigOpt + func WithDebugEnableOutput() DebugConfigOpt + func WithDebugOutputCacheSize(cacheSize uint32) DebugConfigOpt + func WithDebugOutputMaxLineLen(maxLineLen uint32) DebugConfigOpt + type Number struct + func NewNumber(s string) Number + func (n *Number) Scan(src interface{}) error + func (n *Number) UnmarshalJSON(data []byte) error + func (n *Number) UnmarshalText(text []byte) error + func (n Number) Float64() (float64, error) + func (n Number) Int64() (int64, error) + func (n Number) IsNull() bool + func (n Number) MarshalJSON() ([]byte, error) + func (n Number) MarshalText() ([]byte, error) + func (n Number) String() string + func (n Number) Text() (string, bool) + func (n Number) Valid() bool + func (n Number) Value() (driver.Value, error) type PdbgVarAttr + GlobalLevel uint8 type PlsqlDebug + func NewPlsqlDebugWithConn(conn *YasConn, opts ...DebugConfigOpt) (*PlsqlDebug, error) + func (p *PlsqlDebug) CloseWithoutConn() error + func (p *PlsqlDebug) GetOutput() ([]string, error) + func (p *PlsqlDebug) PdbgGetOutput() (string, error) + type Vector struct + Data interface{} + Dim uint16 + Format VectorFormat + func (v *Vector) Scan(src interface{}) error + func (v Vector) String() string + func (v Vector) Value() (driver.Value, error) + type VectorFormat uint8 + const VectorFormatFlex + const VectorFormatFloat16 + const VectorFormatFloat32 + const VectorFormatFloat64 + const VectorFormatInt8 + type VectorScanError struct + Type string + func (e *VectorScanError) Error() string + type YMInterval struct + Month int32 + Year int32 + func NewYMInterval(year int32, month int32) YMInterval type YasBaseError + func ErrNoCursorHandle() *YasBaseError + func ErrVectorNil() *YasBaseError type YasConn + func (conn *YasConn) Cancel() error v1.4.3 Mar 19, 2026 v1.4.2 Mar 18, 2026 Changes in this version + const DBG_BP_ATTR_LINE_NO + const DBG_BP_ATTR_OBJ_ID + const DBG_BP_ATTR_SUB_ID + const DBG_FRAME_ATTR_CLASS_NAME + const DBG_FRAME_ATTR_LINE_NO + const DBG_FRAME_ATTR_METHOD_NAME + const DBG_FRAME_ATTR_OBJ_ID + const DBG_FRAME_ATTR_STACK_NO + const DBG_FRAME_ATTR_SUB_ID + const DBG_RUNNING_ATTR_CLASS_NAME + const DBG_RUNNING_ATTR_LINE_NO + const DBG_RUNNING_ATTR_METHOD_NAME + const DBG_RUNNING_ATTR_OBJ_ID + const DBG_RUNNING_ATTR_STATUS + const DBG_RUNNING_ATTR_SUB_ID + const DBG_STATUS_OFF + const DBG_STATUS_ON + const DBG_VAR_ATTR_BLOCK_NO + const DBG_VAR_ATTR_IS_GLOBAL + const DBG_VAR_ATTR_NAME + const DBG_VAR_ATTR_TYPE + const DBG_VAR_ATTR_VALUE_SIZE + const DEFAULT_ATTRS_BUFFER + const IntegerPrimaryKey + const NormalConnErr + const SS_NORMAL + const SS_UNCONNECTED + const SS_UNKNOWN + var CST_DELETE cliSqlType = 4 + var CST_INSERT cliSqlType = 2 + var CST_PLSQL cliSqlType = 126 + var CST_SELECT cliSqlType = 1 + var CST_UNKNOW cliSqlType = 0 + var CST_UPDATE cliSqlType = 3 + var ErrInsertIdUnsupport = errors.New("last insert id is unsupport") + var ValueTypeStringErr = errors.New("the value parameter type must be *string") + var ValueTypeUint16Err = errors.New("the value parameter type must be *uint16") + var ValueTypeUint32Err = errors.New("the value parameter type must be *uint32") + var ValueTypeUint64Err = errors.New("the value parameter type must be *uint64") + func ConvertToNameValue(args ...any) ([]driver.NamedValue, error) + func FormatTime(format string, t time.Time) string + func FormatYMInterval(format string, year, month int32) string + func GetDatabaseTypeName(yapiType uint32) string + func GetDatabaseTypeSize(yType C.YapiType) int32 + func NewOutputBindValue(dest interface{}, opts ...outputBindOpt) (*outputBindInfo, error) + func NewYasRow(size uint32, yacType C.YapiType, precision uint8, scale int8, nullable uint8) *yasRow + func PbdgGetBindOutValue(stmt *YasStmt) error + func PdbgAbort(stmt *YasStmt) error + func PdbgAddBreakpoint(stmt *YasStmt, objId uint64, subId uint16, lineNo uint32) (uint32, error) + func PdbgCheckVersion(stmt *YasStmt, objId uint64, subId uint16, version uint32) error + func PdbgContinue(stmt *YasStmt) error + func PdbgDeleteAllBreakpoints(stmt *YasStmt) error + func PdbgDeleteBreakpoint(stmt *YasStmt, objId uint64, subId uint16, lineNo uint32) error + func PdbgGetAllFrames(stmt *YasStmt) (uint32, error) + func PdbgGetAllVars(stmt *YasStmt) (uint32, error) + func PdbgGetBreakpointAttrs(stmt *YasStmt, id uint32, attr DebugBpAttr, value interface{}) error + func PdbgGetBreakpointsCount(stmt *YasStmt) (uint32, error) + func PdbgGetFrameAttrs(stmt *YasStmt, id uint32, attr DebugFrameAttr, value interface{}) error + func PdbgGetRunningAttrs(stmt *YasStmt, attr DebugRunningAttr, value interface{}) error + func PdbgGetVarAttrs(stmt *YasStmt, id uint32, attr DebugVarAttr, value interface{}) error + func PdbgGetVarValue(stmt *YasStmt, id uint32) (string, error) + func PdbgStart(stmt *YasStmt, objId uint64, subId uint16) error + func PdbgStatementClose(stmt *YasStmt) error + func PdbgStepInto(stmt *YasStmt) error + func PdbgStepNext(stmt *YasStmt) error + func PdbgStepOut(stmt *YasStmt) error + func SetClientDriverName(name string) + func SetDebugMode() + func WithBindSize(bindSize uint32) outputBindOpt + func WithTypeBigInt() outputBindOpt + func WithTypeBit() outputBindOpt + func WithTypeBlob() outputBindOpt + func WithTypeBool() outputBindOpt + func WithTypeChar() outputBindOpt + func WithTypeClob() outputBindOpt + func WithTypeDSInterval() outputBindOpt + func WithTypeDate() outputBindOpt + func WithTypeDouble() outputBindOpt + func WithTypeFloat() outputBindOpt + func WithTypeInteger() outputBindOpt + func WithTypeNumber() outputBindOpt + func WithTypeNvarchar() outputBindOpt + func WithTypeRaw() outputBindOpt + func WithTypeRowid() outputBindOpt + func WithTypeSmallInt() outputBindOpt + func WithTypeTimestamp() outputBindOpt + func WithTypeTimestampLocalTimeZone() outputBindOpt + func WithTypeTimestampTimeZone() outputBindOpt + func WithTypeTinyint() outputBindOpt + func WithTypeVarchar() outputBindOpt + func WithTypeYMInterval() outputBindOpt + type BindOutDestTypeErr struct + TypeFormat string + func NewBindOutDestTypeErr(typeFormat string) *BindOutDestTypeErr + func (d *BindOutDestTypeErr) Error() string + type DataSourceName struct + DataPath string + IsAutoCommit bool + Password string + Url string + User string + func ParseDSN(dsnStr string) (*DataSourceName, error) + type DebugBpAttr int8 + type DebugFrameAttr int8 + type DebugRunningAttr int8 + type DebugVarAttr int8 + type DebuggerStatus int8 + type PdbgBreakpointAttr struct + Id uint32 + LineNo uint32 + ObjId uint64 + SubId uint16 + func PdbgGetAllBreakpointAttrs(stmt *YasStmt) ([]*PdbgBreakpointAttr, error) + type PdbgFrameData struct + ClassName string + Id uint32 + LineNo uint32 + MethodName string + ObjId uint64 + StackNo uint32 + SubId uint16 + func PdbgGetAllFrameAttrs(stmt *YasStmt) ([]*PdbgFrameData, error) + type PdbgRunningAttr struct + ClassName string + LineNo uint32 + MethodName string + ObjId uint64 + Status DebuggerStatus + SubId uint16 + func PdbgGetAllRunningAttrs(stmt *YasStmt) (*PdbgRunningAttr, error) + type PdbgVarAttr struct + BlockNo uint32 + DataType uint8 + DataTypeName string + Id uint32 + IsGlobal bool + Name string + Size uint32 + Value string + func PdbgGetAllVarAttrs(stmt *YasStmt) ([]*PdbgVarAttr, error) + type PlsqlDebug struct + Stmt *YasStmt + func NewPlsqlDebug(dsn string, sql string, args ...any) (*PlsqlDebug, error) + func (p *PlsqlDebug) Abort() error + func (p *PlsqlDebug) AddBreakpoint(objId uint64, subId uint16, lineNo uint32) (uint32, error) + func (p *PlsqlDebug) CheckVersion(objId uint64, subId uint16, version uint32) error + func (p *PlsqlDebug) Close() error + func (p *PlsqlDebug) Continue() error + func (p *PlsqlDebug) DeleteAllBreakpoint() error + func (p *PlsqlDebug) DeleteBreakpoint(objId uint64, subId uint16, lineNo uint32) error + func (p *PlsqlDebug) GetAllBreakpointAttrs() ([]*PdbgBreakpointAttr, error) + func (p *PlsqlDebug) GetAllFrameAttrs() ([]*PdbgFrameData, error) + func (p *PlsqlDebug) GetAllFrames() (uint32, error) + func (p *PlsqlDebug) GetAllRunningAttrs() (*PdbgRunningAttr, error) + func (p *PlsqlDebug) GetAllVarAttrs() ([]*PdbgVarAttr, error) + func (p *PlsqlDebug) GetAllVars() (uint32, error) + func (p *PlsqlDebug) GetBindOutValue() error + func (p *PlsqlDebug) GetBreakpointAttrs(id uint32, attr DebugBpAttr, value interface{}) error + func (p *PlsqlDebug) GetBreakpointsCount() (uint32, error) + func (p *PlsqlDebug) GetFrameAttrs(id uint32, attr DebugFrameAttr, value interface{}) error + func (p *PlsqlDebug) GetRunningAttrs(attr DebugRunningAttr, value interface{}) error + func (p *PlsqlDebug) GetVarAttrs(id uint32, attr DebugVarAttr, value interface{}) error + func (p *PlsqlDebug) GetVarValue(id uint32) (string, error) + func (p *PlsqlDebug) Start(objId uint64, subId uint16) error + func (p *PlsqlDebug) StepInto() error + func (p *PlsqlDebug) StepNext() error + func (p *PlsqlDebug) StepOut() error + type YasBaseError struct + Code int + Msg string + func ErrDataPathNoExist(p string) *YasBaseError + func ErrDbFetchEOF() *YasBaseError + func ErrDbTypeUnsupport(dbType int) *YasBaseError + func ErrDsnNoSet() *YasBaseError + func ErrDsnNoStandard(dsn string) *YasBaseError + func ErrEnvInit() *YasBaseError + func ErrNoConnect() *YasBaseError + func ErrOutputBindValue() *YasBaseError + func ErrStmtInit() *YasBaseError + func ErrStmtNoOpen() *YasBaseError + func ErrUnknowType(v interface{}) *YasBaseError + func (e *YasBaseError) Error() string + type YasConn struct + Conn *C.YapiConnect + Env *C.YapiEnv + func GenYasconn(dsnStr string) (*YasConn, error) + func (conn *YasConn) Begin() (driver.Tx, error) + func (conn *YasConn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error) + func (conn *YasConn) Close() error + func (conn *YasConn) Ping(ctx context.Context) error + func (conn *YasConn) Prepare(query string) (driver.Stmt, error) + func (conn *YasConn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error) + func (conn *YasConn) ResetSession(ctx context.Context) error + type YasConnector struct + func (connector *YasConnector) Driver() driver.Driver + func (connectot *YasConnector) Connect(ctx context.Context) (driver.Conn, error) + type YasDBError struct + Code int + Column int + Line int + Msg string + SqlState string + func (e *YasDBError) Error() string + type YasResult struct + func (result *YasResult) LastInsertId() (int64, error) + func (result *YasResult) RowsAffected() (int64, error) + type YasRows struct + func (r *YasRows) Close() error + func (r *YasRows) ColumnTypeDatabaseTypeName(index int) string + func (r *YasRows) ColumnTypeLength(index int) (length int64, ok bool) + func (r *YasRows) ColumnTypeNullable(index int) (nullable, ok bool) + func (r *YasRows) ColumnTypePrecisionScale(index int) (precision, scale int64, ok bool) + func (r *YasRows) ColumnTypeScanType(index int) reflect.Type + func (r *YasRows) Columns() []string + func (r *YasRows) Next(dest []driver.Value) error + type YasStmt struct + Conn *YasConn + SqlType uint32 + Sqlstr string + Stmt *C.YapiStmt + func GenPdbgStatement(dsn string, sql string, args ...any) (*YasStmt, error) + func PrepareContext(conn *YasConn, ctx context.Context, query string) (*YasStmt, error) + func (stmt *YasStmt) CheckNamedValue(namedValue *driver.NamedValue) error + func (stmt *YasStmt) Close() error + func (stmt *YasStmt) Exec(args []driver.Value) (driver.Result, error) + func (stmt *YasStmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error) + func (stmt *YasStmt) NumInput() int + func (stmt *YasStmt) Query(args []driver.Value) (driver.Rows, error) + func (stmt *YasStmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error) + type YasTx struct + Conn *YasConn + func (tx *YasTx) Commit() error + func (tx *YasTx) Rollback() error + type YasdbDriver struct + func (yasDriver *YasdbDriver) Conn() *YasConn + func (yasDriver *YasdbDriver) Open(dsnStr string) (driver.Conn, error)