func (db *DB) InitializePairTables(schemaName string, schemaSpec string) (err error) {
	// Use the schema
	if _, err = db.DBHandler.Exec("USE " + schemaName + ";"); err != nil {
		err = fmt.Errorf("Could not use %s schema: \n%s", schemaName, err)
		return
	}
	for _, pair := range db.pairsArray {
		tableQuery := fmt.Sprintf("CREATE TABLE IF NOT EXISTS %s (%s);", pair.String(), schemaSpec)
		if _, err = db.DBHandler.Exec(tableQuery); err != nil {
			err = fmt.Errorf("Could not create table %s: \n%s", pair.String(), err)
			return
		}
	}
	return
}
// InitializePairTables initializes tables per pair
InitializePairTables initializes tables per pair
// InitializePairTables initializes tables per pair
func (db *DB) InitializePairTables(schemaName string, schemaSpec string) (err error) {
	if _, err = db.DBHandler.Exec("USE " + schemaName + ";"); err != nil {
		err = fmt.Errorf("Could not use %s schema: \n%s", schemaName, err)
		return
	}
	for _, pair := range db.pairsArray {
		tableQuery := fmt.Sprintf("CREATE TABLE IF NOT EXISTS %s (%s);", pair.String(), schemaSpec)
		if _, err = db.DBHandler.Exec(tableQuery); err != nil {
			err = fmt.Errorf("Could not create table %s: \n%s", pair.String(), err)
			return
		}
	}
	return
}
func ( db * DB ) InitializePairTables ( schemaName string , schemaSpec string ) ( err error ) { if _ , err = db . DBHandler . Exec ( " " + schemaName + " " ) ; err != nil { err = fmt . Errorf ( " \n " , schemaName , err ) return } for _ , pair := range db . pairsArray { tableQuery := fmt . Sprintf ( " " , pair . String ( ) , schemaSpec ) if _ , err = db . DBHandler . Exec ( tableQuery ) ; err != nil { err = fmt . Errorf ( " \n " , pair . String ( ) , err ) return } } return }
InitializePairTables initializes tables per pair
InitializePairTables initializes tables per pair
// Use the schema