예제 #1
0
def displaydata_toxl_instock():

    con = con_postgres()
    call_sql(con, 'REFRESH MATERIALIZED VIEW io."In_Stock"', [],
             "executeNoReturn")
    con.close()

    sql_to_xl('io.In_Stock', wkbk=xw.Book.caller(), sh='In Stock')
예제 #2
0
def displaydata_toxl_enroute():

    con = con_postgres()
    call_sql(con, 'REFRESH MATERIALIZED VIEW io."Enroute"', [],
             'executeNoReturn')
    con.close()

    sql_to_xl('io.Enroute', wkbk=xw.Book.caller(), sh='Enroute')
예제 #3
0
def displaydata_toxl_already():

    con = con_postgres()
    call_sql(con, 'REFRESH MATERIALIZED VIEW public."Already"', [],
             'executeNoReturn')
    con.close()

    sql_to_xl('Already', wkbk=xw.Book.caller(), sh='Already')
예제 #4
0
def taxoeditor_toxl():
    """
    Writes WmTaxo_Updated to taxo_editor.xlsm
    """

    sql_to_xl('wm.WmTaxo_Updated', wkbk=xw.Book.caller(), sh='Taxo')
예제 #5
0
def displaydata_toxl_manual():
    """
    Writes the postgres view public.Display1 to "Display Data.xlsm"
    """

    sql_to_xl('Display1', wkbk=xw.Book.caller(), sh='Manual')