Documentation
¶
Index ¶
- type Debugger
- type SurrealConn
- func (con *SurrealConn) Begin() (driver.Tx, error)
- func (con *SurrealConn) BeginTx(ctx context.Context, _ driver.TxOptions) (driver.Tx, error)
- func (con *SurrealConn) CheckNamedValue(nv *driver.NamedValue) (err error)
- func (con *SurrealConn) Close() error
- func (con *SurrealConn) ConvertValue(v any) (driver.Value, error)
- func (con *SurrealConn) Exec(sql string, values []driver.Value) (driver.Result, error)
- func (con *SurrealConn) ExecContext(ctx context.Context, sql string, args []driver.NamedValue) (driver.Result, error)
- func (con *SurrealConn) IsValid() bool
- func (con *SurrealConn) Ping(ctx context.Context) error
- func (con *SurrealConn) Prepare(query string) (driver.Stmt, error)
- func (con *SurrealConn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error)
- func (con *SurrealConn) QueryContext(ctx context.Context, sql string, args []driver.NamedValue) (driver.Rows, error)
- type SurrealConnBeginTx
- type SurrealConnector
- type SurrealDriver
- type SurrealResult
- type SurrealRows
- type SurrealStmt
- func (stmt *SurrealStmt) CheckNamedValue(nv *driver.NamedValue) (err error)
- func (stmt *SurrealStmt) Close() error
- func (stmt *SurrealStmt) ConvertValue(v any) (driver.Value, error)
- func (stmt *SurrealStmt) Exec(args []driver.Value) (driver.Result, error)
- func (stmt *SurrealStmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)
- func (stmt *SurrealStmt) NumInput() int
- func (stmt *SurrealStmt) Query(args []driver.Value) (driver.Rows, error)
- func (stmt *SurrealStmt) 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 SurrealConn ¶
type SurrealConn struct {
WSClient *websocket.Conn
Driver *SurrealDriver
Caller *api.SurrealCaller
// contains filtered or unexported fields
}
implements driver.Conn
func (*SurrealConn) CheckNamedValue ¶
func (con *SurrealConn) CheckNamedValue(nv *driver.NamedValue) (err error)
func (*SurrealConn) Close ¶
func (con *SurrealConn) Close() error
func (*SurrealConn) ConvertValue ¶
func (con *SurrealConn) ConvertValue(v any) (driver.Value, error)
func (*SurrealConn) ExecContext ¶
func (con *SurrealConn) ExecContext(ctx context.Context, sql string, args []driver.NamedValue) (driver.Result, error)
func (*SurrealConn) IsValid ¶
func (con *SurrealConn) IsValid() bool
func (*SurrealConn) PrepareContext ¶
func (*SurrealConn) QueryContext ¶
func (con *SurrealConn) QueryContext(ctx context.Context, sql string, args []driver.NamedValue) (driver.Rows, error)
QueryContext implements driver.QueryerContext.
type SurrealConnBeginTx ¶
type SurrealConnBeginTx struct {
// contains filtered or unexported fields
}
implements driver.ConnBeginTx
func (*SurrealConnBeginTx) Commit ¶
func (tx *SurrealConnBeginTx) Commit() error
func (*SurrealConnBeginTx) Rollback ¶
func (tx *SurrealConnBeginTx) Rollback() error
type SurrealConnector ¶
type SurrealConnector struct {
Creds *config.Credentials
Dialer *websocket.Dialer
// contains filtered or unexported fields
}
implements driver.Connector
func (*SurrealConnector) Driver ¶
func (s *SurrealConnector) Driver() driver.Driver
type SurrealDriver ¶
type SurrealDriver struct {
// contains filtered or unexported fields
}
implements driver.Driver
var SurrealDBDriver *SurrealDriver
func (*SurrealDriver) OpenConnector ¶
func (d *SurrealDriver) OpenConnector(address string) (driver.Connector, error)
implements driver.DriverContext
type SurrealResult ¶
func (*SurrealResult) LastInsertId ¶
func (r *SurrealResult) LastInsertId() (int64, error)
func (*SurrealResult) RowsAffected ¶
func (r *SurrealResult) RowsAffected() (int64, error)
type SurrealRows ¶
type SurrealRows struct {
RawResult *api.Response // Original API response
// contains filtered or unexported fields
}
implements driver.Rows
func (*SurrealRows) Close ¶
func (rows *SurrealRows) Close() error
func (*SurrealRows) Columns ¶
func (r *SurrealRows) Columns() (cols []string)
func (*SurrealRows) Normalize ¶
func (r *SurrealRows) Normalize()
type SurrealStmt ¶
type SurrealStmt struct {
// contains filtered or unexported fields
}
implements driver.Stmt
func (*SurrealStmt) CheckNamedValue ¶
func (stmt *SurrealStmt) CheckNamedValue(nv *driver.NamedValue) (err error)
func (*SurrealStmt) Close ¶
func (stmt *SurrealStmt) Close() error
func (*SurrealStmt) ConvertValue ¶
func (stmt *SurrealStmt) ConvertValue(v any) (driver.Value, error)
func (*SurrealStmt) ExecContext ¶
func (stmt *SurrealStmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)
implements driver.StmtExecContext
func (*SurrealStmt) NumInput ¶
func (stmt *SurrealStmt) NumInput() int
func (*SurrealStmt) QueryContext ¶
func (stmt *SurrealStmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error)
implements driver.StmtQueryContext
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
e2
command
|
|
|
pkg
|
|
|
gorm/sqltest
command
|
|
|
rel/testing/ex1
command
|
|
|
rel/testing/ex2
command
|
|
|
rel/testing/ex3
command
|
|