Conn

Overview

Location

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

Instance Methods


constructor

 

constructor

 

Conn()

 

init()

constructor (Conn)

 

constructor(value: Conn)

 

Conn(Conn value)

 

init(_ value: Conn)

Parameters:

  • value:

BeginTx

 

// .NET, Island, macOS
method BeginTx(ctx: Context; opts: Reference<TxOptions>): tuple of (Reference<Tx>, error)
// .NET Standard 2.0
method BeginTx(ctx: Context; opts: Reference<TxOptions>): ValueTuple<Reference<Tx>, error>

 

// .NET, Island, macOS
(Reference<Tx>, error) BeginTx(Context ctx, Reference<TxOptions> opts)
// .NET Standard 2.0
ValueTuple<Reference<Tx>, error> BeginTx(Context ctx, Reference<TxOptions> opts)

 

// .NET, Island, macOS
func BeginTx(_ ctx: Context, _ opts: Reference<TxOptions>) -> (Reference<Tx>, error)
// .NET Standard 2.0
func BeginTx(_ ctx: Context, _ opts: Reference<TxOptions>) -> ValueTuple<Reference<Tx>, error>

 

// .NET, Island, macOS
func BeginTx(ctx Context, opts Reference<TxOptions>) (Reference<Tx>, error)
// .NET Standard 2.0
func BeginTx(ctx Context, opts Reference<TxOptions>) ValueTuple<Reference<Tx>, error>

Parameters:

  • ctx:
  • opts:

Close

 

method Close: error

 

error Close()

 

func Close() -> error

 

func Close() error

ExecContext

 

// .NET, Island, macOS
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, macOS
(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, macOS
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, macOS
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:

PingContext

 

method PingContext(ctx: Context): error

 

error PingContext(Context ctx)

 

func PingContext(_ ctx: Context) -> error

 

func PingContext(ctx Context) error

Parameters:

  • ctx:

PrepareContext

 

// .NET, Island, macOS
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, macOS
(Reference<Stmt>, error) PrepareContext(Context ctx, string query)
// .NET Standard 2.0
ValueTuple<Reference<Stmt>, error> PrepareContext(Context ctx, string query)

 

// .NET, Island, macOS
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, macOS
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:

QueryContext

 

// .NET, Island, macOS
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, macOS
(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, macOS
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, macOS
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:

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: