Skip to content

Is it possible to run an entire SQL file with this library? #17

Closed Answered by cjbj
lmeerwood asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, it's possible but it needs to be done in Python. It's not part of the driver itself.

See how the example SQL schema is installed by reading from a simplified SQL file in sample_env.py

Also see the sample sqlp.py which reads interactively, is more tolerant of SQL / SQL*Plus / PL/SQL syntax but is missing some useful things like substitution and bind variable support.

Pull Requests for improvements are welcome.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lmeerwood
Comment options

Answer selected by lmeerwood
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants