...

Source file src/github.com/DATA-DOG/go-sqlmock/statement.go

Documentation: github.com/DATA-DOG/go-sqlmock

     1  package sqlmock
     2  
     3  type statement struct {
     4  	conn  *sqlmock
     5  	ex    *ExpectedPrepare
     6  	query string
     7  }
     8  
     9  func (stmt *statement) Close() error {
    10  	stmt.ex.wasClosed = true
    11  	return stmt.ex.closeErr
    12  }
    13  
    14  func (stmt *statement) NumInput() int {
    15  	return -1
    16  }
    17  

View as plain text