Beispiel #1
0
func (fc *firebirdsqlConn) Begin() (driver.Tx, error) {
	tx, err := newFirebirdsqlTx(fc.wp)
	fc.tx = tx
	fc.isAutocommit = false
	return driver.Tx(tx), err
}
Beispiel #2
0
func (fc *firebirdsqlConn) begin(isolationLevel int) (driver.Tx, error) {
	tx, err := newFirebirdsqlTx(fc, isolationLevel, false)
	fc.tx = tx
	return driver.Tx(tx), err
}