Пример #1
0
def BUILD_MSSSQL_DDL(opts, ddl_objs, use_schemas):
    #---------------------------------#
    #-------- Write MsSQL DDL --------#
    #---------------------------------#
    print '> Building MsSQL DDL...'
    outdir = os.path.join(os.path.abspath(opts.output), 'ODM2_for_MSSQL.sql')
    with open(outdir, 'w') as f:
        f.write(translator.MSSQL(opts, ddl_objs).build_ddl())
Пример #2
0
def BUILD_MSSSQL_DDL(opts, ddl_objs, use_schemas):
    #---------------------------------#
    #-------- Write MsSQL DDL --------#
    #---------------------------------#
    sys.stdout.write('> Building MsSQL DDL...')
    outdir = os.path.join(os.path.abspath(opts.output),
                          'WaM-DaM_for_MSSQL.sql')
    with open(outdir, 'w') as f:
        f.write(translator.MSSQL(opts, ddl_objs).build_ddl())
    sys.stdout.write('done\n')