func (db *Database) OpenTransaction() (*Database, error) {

	if db.transaction != nil {
		log.Errorf("there is an active transaction already")
		return db, fmt.Errorf("there is an active transaction already")
	}
	var err error
	db.transaction, err = db.connection.Begin()
	return db, err
}
// OpenTransaction starts a new transaction on this connection.
OpenTransaction starts a new transaction on this connection.
// OpenTransaction starts a new transaction on this connection .
func (db *Database) OpenTransaction() (*Database, error) {
	if db.transaction != nil {
		log.Errorf("there is an active transaction already")
		return db, fmt.Errorf("there is an active transaction already")
	}
	var err error
	db.transaction, err = db.connection.Begin()
	return db, err
}
func ( db * Database ) OpenTransaction ( ) ( * Database , error ) { if db . transaction != nil { log . Errorf ( " " ) return db , fmt . Errorf ( " " ) } var err error db . transaction , err = db . connection . Begin ( ) return db , err }
OpenTransaction starts a new transaction on this connection.
OpenTransaction starts a new transaction on this connection .