1 min read
To create a line break (<br>), end a line with two or more spaces, and then type return.
like this.
To create a blockquote, add a > in front of a paragraph.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__version__ = '0.0.1'
from os import environ as env
import sys
import traceback
import pandas as pd
import sqlServerConn
def main():
try:
print("---SP2SQL_HELPER start---")
keymap = parse_def_file('./csv/tasklist_def.csv')
sql = parse_import_file('./csv/tasklist_st.csv',keymap)
# connect to sql server
server = env.get('SERVER')
database = env.get('DATABASE')
username = env.get('USERNAME')
password = env.get('PASSWORD')
sqlServer = sqlServerConn.connect(server,database,username,password)
cursor = sqlServer.cursor()
res = cursor.execute(sql)
cursor.commit()
print(res)
sys.exit(0)
except Exception as e:
print("FATAL:" + " ".join(traceback.format_exc().splitlines()))
sys.exit(1)
finally:
print("---SP2SQL_HELPER end---")
if __name__ == '__main__':
main()To create a horizontal rule, use three or more asterisks (***), dashes (—), or underscores (___) on a line by themselves.
like this