Tx

Overview

Location

Instance Methods


constructor

 

constructor

 

Tx()

 

init()

 

Sub New()

constructor (Tx)

 

constructor(value: Tx)

 

Tx(Tx value)

 

init(_ value: Tx)

 

Sub New(value As Tx)

Parameters:

  • value:

Commit

 

method Commit: error

 

error Commit()

 

func Commit() -> error

 

func Commit() error

 

Function Commit() As error

Exec

 

method Exec(query: string; params args: array of Object): tuple of (Result, error)

 

(Result, error) Exec(string query, params Object[] args)

 

func Exec(_ query: string, _ args: Object...) -> (Result, error)

 

func Exec(query string, args []interface{}) tuple of (Result, error)

 

Function Exec(query As string, ParamArray args As Object()) As Tuple (Of Result, error)

Parameters:

  • query:
  • args:

ExecContext

 

method ExecContext(ctx: Context; query: string; params args: array of Object): tuple of (Result, error)

 

(Result, error) ExecContext(Context ctx, string query, params Object[] args)

 

func ExecContext(_ ctx: Context, _ query: string, _ args: Object...) -> (Result, error)

 

func ExecContext(ctx Context, query string, args []interface{}) tuple of (Result, error)

 

Function ExecContext(ctx As Context, query As string, ParamArray args As Object()) As Tuple (Of Result, error)

Parameters:

  • ctx:
  • query:
  • args:

Prepare

 

method Prepare(query: string): tuple of (Memory<Stmt>, error)

 

(Memory<Stmt>, error) Prepare(string query)

 

func Prepare(_ query: string) -> (Memory<Stmt>, error)

 

func Prepare(query string) tuple of (Memory<Stmt>, error)

 

Function Prepare(query As string) As Tuple (Of Memory<Stmt>, error)

Parameters:

  • query:

PrepareContext

 

method PrepareContext(ctx: Context; query: string): tuple of (Memory<Stmt>, error)

 

(Memory<Stmt>, error) PrepareContext(Context ctx, string query)

 

func PrepareContext(_ ctx: Context, _ query: string) -> (Memory<Stmt>, error)

 

func PrepareContext(ctx Context, query string) tuple of (Memory<Stmt>, error)

 

Function PrepareContext(ctx As Context, query As string) As Tuple (Of Memory<Stmt>, error)

Parameters:

  • ctx:
  • query:

Query

 

method Query(query: string; params args: array of Object): tuple of (Memory<Rows>, error)

 

(Memory<Rows>, error) Query(string query, params Object[] args)

 

func Query(_ query: string, _ args: Object...) -> (Memory<Rows>, error)

 

func Query(query string, args []interface{}) tuple of (Memory<Rows>, error)

 

Function Query(query As string, ParamArray args As Object()) As Tuple (Of Memory<Rows>, error)

Parameters:

  • query:
  • args:

QueryContext

 

method QueryContext(ctx: Context; query: string; params args: array of Object): tuple of (Memory<Rows>, error)

 

(Memory<Rows>, error) QueryContext(Context ctx, string query, params Object[] args)

 

func QueryContext(_ ctx: Context, _ query: string, _ args: Object...) -> (Memory<Rows>, error)

 

func QueryContext(ctx Context, query string, args []interface{}) tuple of (Memory<Rows>, error)

 

Function QueryContext(ctx As Context, query As string, ParamArray args As Object()) As Tuple (Of Memory<Rows>, error)

Parameters:

  • ctx:
  • query:
  • args:

QueryRow

 

method QueryRow(query: string; params args: array of Object): Memory<Row>

 

Memory<Row> QueryRow(string query, params Object[] args)

 

func QueryRow(_ query: string, _ args: Object...) -> Memory<Row>

 

func QueryRow(query string, args []interface{}) Memory<Row>

 

Function QueryRow(query As string, ParamArray args As Object()) As Memory<Row>

Parameters:

  • query:
  • args:

QueryRowContext

 

method QueryRowContext(ctx: Context; query: string; params args: array of Object): Memory<Row>

 

Memory<Row> QueryRowContext(Context ctx, string query, params Object[] args)

 

func QueryRowContext(_ ctx: Context, _ query: string, _ args: Object...) -> Memory<Row>

 

func QueryRowContext(ctx Context, query string, args []interface{}) Memory<Row>

 

Function QueryRowContext(ctx As Context, query As string, ParamArray args As Object()) As Memory<Row>

Parameters:

  • ctx:
  • query:
  • args:

Rollback

 

method Rollback: error

 

error Rollback()

 

func Rollback() -> error

 

func Rollback() error

 

Function Rollback() As error

Stmt

 

method Stmt(stmt: Memory<Stmt>): Memory<Stmt>

 

Memory<Stmt> Stmt(Memory<Stmt> stmt)

 

func Stmt(_ stmt: Memory<Stmt>) -> Memory<Stmt>

 

func Stmt(stmt Memory<Stmt>) Memory<Stmt>

 

Function Stmt(stmt As Memory<Stmt>) As Memory<Stmt>

Parameters:

  • stmt:

StmtContext

 

method StmtContext(ctx: Context; stmt: Memory<Stmt>): Memory<Stmt>

 

Memory<Stmt> StmtContext(Context ctx, Memory<Stmt> stmt)

 

func StmtContext(_ ctx: Context, _ stmt: Memory<Stmt>) -> Memory<Stmt>

 

func StmtContext(ctx Context, stmt Memory<Stmt>) Memory<Stmt>

 

Function StmtContext(ctx As Context, stmt As Memory<Stmt>) As Memory<Stmt>

Parameters:

  • ctx:
  • stmt: