Conn

Overview

Location

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

Required Methods


Begin

 

// .NET, Island
method Begin: tuple of (Tx, error)
// .NET Standard 2.0
method Begin: ValueTuple<Tx, error>

 

// .NET, Island
(Tx, error) Begin()
// .NET Standard 2.0
ValueTuple<Tx, error> Begin()

 

// .NET, Island
func Begin() -> (Tx, error)
// .NET Standard 2.0
func Begin() -> ValueTuple<Tx, error>

 

// .NET, Island
func Begin() (Tx, error)
// .NET Standard 2.0
func Begin() ValueTuple<Tx, error>

Close

 

method Close: error

 

error Close()

 

func Close() -> error

 

func Close() error

Prepare

 

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

 

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

 

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

 

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

Parameters:

  • query: