Last active
December 5, 2017 08:37
-
-
Save alasarr/8bf882d31bab6ba8b942f4cb0b6fea2c to your computer and use it in GitHub Desktop.
CARTO Batch API sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from longitude.models.cartomodel import CartoModel | |
from longitude.config import cfg | |
cfg['CARTO_USER'] = 'XXX' | |
cfg['CARTO_API_KEY'] = 'XXXX' | |
cm = CartoModel() | |
q = ''' | |
select pg_sleep(10) | |
''' | |
cm.query(q, {'batch': True}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It requires to install geographica-longitude.