func (db *DB) InitializeSingleTable(schemaName string, tableName 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
	}
	tableQuery := fmt.Sprintf("CREATE TABLE IF NOT EXISTS %s (%s);", tableName, schemaSpec)
	if _, err = db.DBHandler.Exec(tableQuery); err != nil {
		err = fmt.Errorf("Could not create table %s: \n%s", tableName, err)
		return
	}
	return
}
// InitializeSingleTable initializes a single table in a schema
InitializeSingleTable initializes a single table in a schema
// InitializeSingleTable initializes a single table in a schema
func (db *DB) InitializeSingleTable(schemaName string, tableName 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
	}
	tableQuery := fmt.Sprintf("CREATE TABLE IF NOT EXISTS %s (%s);", tableName, schemaSpec)
	if _, err = db.DBHandler.Exec(tableQuery); err != nil {
		err = fmt.Errorf("Could not create table %s: \n%s", tableName, err)
		return
	}
	return
}
func ( db * DB ) InitializeSingleTable ( schemaName string , tableName string , schemaSpec string ) ( err error ) { if _ , err = db . DBHandler . Exec ( " " + schemaName + " " ) ; err != nil { err = fmt . Errorf ( " \n " , schemaName , err ) return } tableQuery := fmt . Sprintf ( " " , tableName , schemaSpec ) if _ , err = db . DBHandler . Exec ( tableQuery ) ; err != nil { err = fmt . Errorf ( " \n " , tableName , err ) return } return }
InitializeSingleTable initializes a single table in a schema
InitializeSingleTable initializes a single table in a schema
// Use the schema