Answer the question
In order to leave comments, you need to log in
What are the solutions for granting the user access to the database?
I have a python program using Django ORM. which collects proxies, checks and saves them in the database along with various data about them. I want to make an API for accessing the database so that users can send requests like:
"from proxy get url where uptime < {} and !badProxy order_by uptime".format(time.time() - 300)
# uptime is time when proxy starts to work last time
{
'table': 'proxy',
'fields': ['url',],
'filter': AndFilter("!badProxy", "uptime < {}".format(time.time() - 300)),
'order_by': ['uptime'],
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question