Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sf_username = "user"
- sf_password = "pass"
- sf_api_token = "token"
- sf_update = beatbox.PythonClient()
- password = str("%s%s" % (sf_password, sf_api_token))
- sf_update.login(sf_username, password)
- t = Terminal()
- hub = [stuff]
- def FINAL_RUN():
- cnx = alternate_modify(hub)
- cur = cnx.cursor()
- queryinput = """
- SQL QUERY I WANT
- """
- cur.execute(queryinput)
- rez = cur.fetchone()
- while rez is not None:
- write_to_sf(rez)
- rez = cur.fetchone()
- FINAL_RUN()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement