Skip to content

Get cursor #443

Answered by josejachuf
josejachuf asked this question in Q&A
Aug 19, 2022 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

Thanks @gi0baro

This works fine:

    with db.connection():
            cur = db._adapter.cursor
            cur.execute(query, (xmin, ymin, xmax, ymax))
            tile = bytes(cur.fetchone()[0])
            cur.close()

Using executesql not works for me. I am going to try some more things and notify you, but with the cursor with the connection it is useful to me

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by josejachuf
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