func (db *DB) PlaceAuctionOrder(order *match.AuctionOrder) (err error) {

	var tx *sql.Tx
	if tx, err = db.DBHandler.Begin(); err != nil {
		err = fmt.Errorf("Error when beginning transaction for NewAuction: %s", err)
		return
	}

	defer func() {
		if err != nil {
			tx.Rollback()
			err = fmt.Errorf("Error while creating new auction: \n%s", err)
			return
		}
		err = tx.Commit()
	}()

	if _, err = tx.Exec("USE " + db.auctionSchema + ";"); err != nil {
		err = fmt.Errorf("Error while placing solved auction order: %s", err)
		return
	}

	logging.Infof("Placing order %s!", order)

	// TODO
	return
}
// PlaceAuctionOrder places an order in the unencrypted datastore.
PlaceAuctionOrder places an order in the unencrypted datastore.
// PlaceAuctionOrder places an order in the unencrypted datastore .
func (db *DB) PlaceAuctionOrder(order *match.AuctionOrder) (err error) {
	var tx *sql.Tx
	if tx, err = db.DBHandler.Begin(); err != nil {
		err = fmt.Errorf("Error when beginning transaction for NewAuction: %s", err)
		return
	}
	defer func() {
		if err != nil {
			tx.Rollback()
			err = fmt.Errorf("Error while creating new auction: \n%s", err)
			return
		}
		err = tx.Commit()
	}()
	if _, err = tx.Exec("USE " + db.auctionSchema + ";"); err != nil {
		err = fmt.Errorf("Error while placing solved auction order: %s", err)
		return
	}
	logging.Infof("Placing order %s!", order)
	return
}
func ( db * DB ) PlaceAuctionOrder ( order * match . AuctionOrder ) ( err error ) { var tx * sql . Tx if tx , err = db . DBHandler . Begin ( ) ; err != nil { err = fmt . Errorf ( " " , err ) return } defer func ( ) { if err != nil { tx . Rollback ( ) err = fmt . Errorf ( " \n " , err ) return } err = tx . Commit ( ) } ( ) if _ , err = tx . Exec ( " " + db . auctionSchema + " " ) ; err != nil { err = fmt . Errorf ( " " , err ) return } logging . Infof ( " " , order ) return }
PlaceAuctionOrder places an order in the unencrypted datastore.
PlaceAuctionOrder places an order in the unencrypted datastore .
// TODO