Tx

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.database.sql
  • Platforms: .NET, .NET Standard 2.0, Island

Instance Methods


constructor

 

constructor

 

Tx()

 

init()

constructor (Tx)

 

constructor(value: Tx)

 

Tx(Tx value)

 

init(_ value: Tx)

Parameters:

  • value:

Commit

 

method Commit: error

 

error Commit()

 

func Commit() -> error

 

func Commit() error

Exec

 

// .NET, Island
method Exec(query: string; params args: array of Object): tuple of (Result, error)
// .NET Standard 2.0
method Exec(query: string; params args: array of Object): ValueTuple<Result, error>

 

// .NET, Island
(Result, error) Exec(string query, params Object[] args)
// .NET Standard 2.0
ValueTuple<Result, error> Exec(string query, params Object[] args)

 

// .NET, Island
func Exec(_ query: string, _ args: Object...) -> (Result, error)
// .NET Standard 2.0
func Exec(_ query: string, _ args: Object...) -> ValueTuple<Result, error>

 

// .NET, Island
func Exec(query string, args []interface{}) (Result, error)
// .NET Standard 2.0
func Exec(query string, args []interface{}) ValueTuple<Result, error>

Parameters:

  • query:
  • args:

ExecContext

 

// .NET, Island
method ExecContext(ctx: Context; query: string; params args: array of Object): tuple of (Result, error)
// .NET Standard 2.0
method ExecContext(ctx: Context; query: string; params args: array of Object): ValueTuple<Result, error>

 

// .NET, Island
(Result, error) ExecContext(Context ctx, string query, params Object[] args)
// .NET Standard 2.0
ValueTuple<Result, error> ExecContext(Context ctx, string query, params Object[] args)

 

// .NET, Island
func ExecContext(_ ctx: Context, _ query: string, _ args: Object...) -> (Result, error)
// .NET Standard 2.0
func ExecContext(_ ctx: Context, _ query: string, _ args: Object...) -> ValueTuple<Result, error>

 

// .NET, Island
func ExecContext(ctx Context, query string, args []interface{}) (Result, error)
// .NET Standard 2.0
func ExecContext(ctx Context, query string, args []interface{}) ValueTuple<Result, error>

Parameters:

  • ctx:
  • query:
  • args:

Prepare

 

// .NET, Island
method Prepare(query: string): tuple of (Reference<Stmt>, error)
// .NET Standard 2.0
method Prepare(query: string): ValueTuple<Reference<Stmt>, error>

 

// .NET, Island
(Reference<Stmt>, error) Prepare(string query)
// .NET Standard 2.0
ValueTuple<Reference<Stmt>, error> Prepare(string query)

 

// .NET, Island
func Prepare(_ query: string) -> (Reference<Stmt>, error)
// .NET Standard 2.0
func Prepare(_ query: string) -> ValueTuple<Reference<Stmt>, error>

 

// .NET, Island
func Prepare(query string) (Reference<Stmt>, error)
// .NET Standard 2.0
func Prepare(query string) ValueTuple<Reference<Stmt>, error>

Parameters:

  • query:

PrepareContext

 

// .NET, Island
method PrepareContext(ctx: Context; query: string): tuple of (Reference<Stmt>, error)
// .NET Standard 2.0
method PrepareContext(ctx: Context; query: string): ValueTuple<Reference<Stmt>, error>

 

// .NET, Island
(Reference<Stmt>, error) PrepareContext(Context ctx, string query)
// .NET Standard 2.0
ValueTuple<Reference<Stmt>, error> PrepareContext(Context ctx, string query)

 

// .NET, Island
func PrepareContext(_ ctx: Context, _ query: string) -> (Reference<Stmt>, error)
// .NET Standard 2.0
func PrepareContext(_ ctx: Context, _ query: string) -> ValueTuple<Reference<Stmt>, error>

 

// .NET, Island
func PrepareContext(ctx Context, query string) (Reference<Stmt>, error)
// .NET Standard 2.0
func PrepareContext(ctx Context, query string) ValueTuple<Reference<Stmt>, error>

Parameters:

  • ctx:
  • query:

Query

 

// .NET, Island
method Query(query: string; params args: array of Object): tuple of (Reference<Rows>, error)
// .NET Standard 2.0
method Query(query: string; params args: array of Object): ValueTuple<Reference<Rows>, error>

 

// .NET, Island
(Reference<Rows>, error) Query(string query, params Object[] args)
// .NET Standard 2.0
ValueTuple<Reference<Rows>, error> Query(string query, params Object[] args)

 

// .NET, Island
func Query(_ query: string, _ args: Object...) -> (Reference<Rows>, error)
// .NET Standard 2.0
func Query(_ query: string, _ args: Object...) -> ValueTuple<Reference<Rows>, error>

 

// .NET, Island
func Query(query string, args []interface{}) (Reference<Rows>, error)
// .NET Standard 2.0
func Query(query string, args []interface{}) ValueTuple<Reference<Rows>, error>

Parameters:

  • query:
  • args:

QueryContext

 

// .NET, Island
method QueryContext(ctx: Context; query: string; params args: array of Object): tuple of (Reference<Rows>, error)
// .NET Standard 2.0
method QueryContext(ctx: Context; query: string; params args: array of Object): ValueTuple<Reference<Rows>, error>

 

// .NET, Island
(Reference<Rows>, error) QueryContext(Context ctx, string query, params Object[] args)
// .NET Standard 2.0
ValueTuple<Reference<Rows>, error> QueryContext(Context ctx, string query, params Object[] args)

 

// .NET, Island
func QueryContext(_ ctx: Context, _ query: string, _ args: Object...) -> (Reference<Rows>, error)
// .NET Standard 2.0
func QueryContext(_ ctx: Context, _ query: string, _ args: Object...) -> ValueTuple<Reference<Rows>, error>

 

// .NET, Island
func QueryContext(ctx Context, query string, args []interface{}) (Reference<Rows>, error)
// .NET Standard 2.0
func QueryContext(ctx Context, query string, args []interface{}) ValueTuple<Reference<Rows>, error>

Parameters:

  • ctx:
  • query:
  • args:

QueryRow

 

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

 

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

 

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

 

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

Parameters:

  • query:
  • args:

QueryRowContext

 

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

 

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

 

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

 

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

Parameters:

  • ctx:
  • query:
  • args:

Rollback

 

method Rollback: error

 

error Rollback()

 

func Rollback() -> error

 

func Rollback() error

Stmt

 

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

 

Reference<Stmt> Stmt(Reference<Stmt> stmt)

 

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

 

func Stmt(stmt Reference<Stmt>) Reference<Stmt>

Parameters:

  • stmt:

StmtContext

 

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

 

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

 

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

 

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

Parameters:

  • ctx:
  • stmt: