def BUILD_POSTGRES_DDL(opts, ddl_objs, use_schemas): #--------------------------------------# #-------- Write PostgreSQL DDL --------# #--------------------------------------# print '> Building PostgreSQL DDL...' outdir = os.path.join(os.path.abspath(opts.output), 'ODM2_for_PostgreSQL.sql') with open(outdir, 'w') as f: f.write(translator.POSTGRESQL(opts, ddl_objs).build_ddl())
def BUILD_POSTGRES_DDL(opts, ddl_objs, use_schemas): #--------------------------------------# #-------- Write PostgreSQL DDL --------# #--------------------------------------# sys.stdout.write('> Building PostgreSQL DDL...') outdir = os.path.join(os.path.abspath(opts.output), 'WaM-DaM_for_PostgreSQL.sql') with open(outdir, 'w') as f: f.write(translator.POSTGRESQL(opts, ddl_objs).build_ddl()) sys.stdout.write('done\n')