duneanalytics / dune-client

A framework for interacting with Dune Analytics' officially supported API service
Apache License 2.0
85 stars 22 forks source link

[Premium Feature] run_sql #78

Closed bh2smith closed 1 year ago

bh2smith commented 1 year ago

Closes #77

Adds run_sql method which creates a query, executes, gets results and optionally archives the query (by default).

Test Plan

This can't be tested with any API key that I have. But the test is there (skipped) and pretty straightforward to follow. Given that all the other routes are tested, it should be fine.

cc @TheEdgeOfRage & @diegoximenes for additional review.

diegoximenes commented 1 year ago

Approved but e2e-tests are failing though :thinking:

bh2smith commented 1 year ago

Approved but e2e-tests are failing though :thinking:

This is partially because I have no more credits to test with. And also because upload CSV requires premium subscription which I also don't have.

diegoximenes commented 1 year ago

This is partially because I have no more credits to test with. And also because upload CSV requires premium subscription which I also don't have.

I will check internally how Dune can give you access to an API key related to a premium subscription :)