Skip to content

TransactionException after raw sql CREATE TABLE queries against duckdb backend #7578

Answered by gforsyth
coroa asked this question in Q&A
Discussion options

You must be logged in to vote

You can do

con = ibis.duckdb.connect()
table = con.read_sqlite("/path/to/sqlite.db", "table_name")

and that should handle it. Is the query you ran like the one above? raw_sql should work fine (but Ibis will handle the transaction stuff if you use the built-in methods). I ask because your example above appears to be missing a SELECT.

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
2 replies
@cpcloud
Comment options

@coroa
Comment options

Answer selected by coroa
Comment options

You must be logged in to vote
9 replies
@coroa
Comment options

@coroa
Comment options

@cpcloud
Comment options

@gforsyth
Comment options

@coroa
Comment options

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