<s> from . builder import SchemaBuilder <EOL> class MySQLSchemaBuilder ( SchemaBuilder ) : <EOL> def has_table ( self , table ) : <EOL> """<STR_LIT>""" <EOL> sql = self . _grammar . compile_table_exists ( ) <EOL> database = self . _connection . get_database_name ( ) <EOL> table = self . _connection . get_table_prefix ( ) + table <EOL> return len ( self . _connection . select ( sql , [ database , table ] ) ) > <NUM_LIT:0> <EOL> def get_column_listing ( self , table ) : <EOL> """<STR_LIT>""" <EOL> sql = self . _grammar . compile_column_exists ( ) <EOL> database = self . _connection . get_database_name ( ) <EOL> table = self . _connection . get_table_prefix ( ) + table <EOL> results = self . _connection . select ( sql , [ database , table ] ) <EOL> return self . _connection . get_post_processor ( ) . process_column_listing ( results ) </s>
