Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleConn ¶
type SimpleConn struct {
// contains filtered or unexported fields
}
func NewSimpleDBConn ¶
func NewSimpleDBConn(name string) *SimpleConn
func (*SimpleConn) Close ¶
func (conn *SimpleConn) Close() error
クローズは、現在準備されているステートメントとトランザクションを無効にし、停止する可能性がある。 準備されたステートメントとトランザクションを停止し、この接続は使用されなくなります。
type SimpleDriver ¶
type SimpleDriver struct { }
func NewSimpleDriver ¶
func NewSimpleDriver() *SimpleDriver
type SimpleRows ¶
type SimpleRows struct {
// contains filtered or unexported fields
}
func NewSimpleRows ¶
func NewSimpleRows(s query.Scan, fields []string) *SimpleRows
func (*SimpleRows) Close ¶
func (rows *SimpleRows) Close() error
func (*SimpleRows) Columns ¶
func (rows *SimpleRows) Columns() []string
type SimpleStmt ¶
type SimpleStmt struct {
// contains filtered or unexported fields
}
func NewSimpleStmt ¶
func NewSimpleStmt(query string, conn *SimpleConn) *SimpleStmt
func (*SimpleStmt) Close ¶
func (stmt *SimpleStmt) Close() error
クローズはステートメントを閉じる。
Go 1.1では、ステートメントがクエリによって使用されている場合、ステートメントはクローズされません。 クエリによって使用されている場合は閉じません。 ドライバは、Closeによって行われるすべてのネットワーク呼び出しが無限にブロックされないようにする必要があります(タイムアウトを適用するなど)。
func (*SimpleStmt) NumInput ¶
func (stmt *SimpleStmt) NumInput() int
NumInputはプレースホルダ・パラメータの数を返す。 NumInput が >= 0 を返す場合、SQL パッケージは呼び出し元からの 引数数のサニティチェックを行い、呼び出し元にエラーを返します。 ステートメントの Exec メソッドや Query メソッドが呼び出される前に、 呼び出し元からの引数数をチェックし、呼び出し元にエラーを返します。 ドライバがプレースホルダの数を知らない場合、NumInput は -1 を返すこともあります。 そのプレースホルダの数をドライバが知らない場合、 NumInput は -1 を返すこともあります。 その場合、SQLパッケージは Exec や Query の引数の数をチェックしません。
Click to show internal directories.
Click to hide internal directories.