def BUILD_MYSQL_DDL(opts, ddl_objs, use_schemas): #---------------------------------# #-------- Write MySQL DDL --------# #---------------------------------# print '> Building MySQL DDL...' outdir = os.path.join(os.path.abspath(opts.output), 'ODM2_for_MySQL.sql') with open(outdir, 'w') as f: f.write(translator.MYSQL(opts, ddl_objs).build_ddl())
def BUILD_MYSQL_DDL(opts, ddl_objs, use_schemas): #---------------------------------# #-------- Write MySQL DDL --------# #---------------------------------# sys.stdout.write('> Building MySQL DDL...') outdir = os.path.join(os.path.abspath(opts.output), 'WaM-DaM_for_MySQL.sql') with open(outdir, 'w') as f: f.write(translator.MYSQL(opts, ddl_objs).build_ddl()) sys.stdout.write('done\n')