Ejemplo n.º 1
0
 def post(self, request, *args, **kwargs):
     sql = request.POST.get('sql')
     connection = request.POST.get('connection', '')
     query = Query(sql=sql, connection=connection, title='')
     ql = query.log(request.user)
     query.title = 'Playground - %s' % ql.id
     return _export(request, query)
Ejemplo n.º 2
0
 def post(self, request, *args, **kwargs):
     sql = request.POST.get('sql')
     connection = request.POST.get('connection')
     query = Query(sql=sql, connection=connection, title='')
     ql = query.log(request.user)
     query.title = 'Playground - %s' % ql.id
     return _export(request, query)
Ejemplo n.º 3
0
def download_from_sql(request):
    sql = request.POST.get('sql')
    query = Query(sql=sql, title='')
    ql = query.log(request.user)
    query.title = 'Playground - %s' % ql.id
    return _export(request, query)
Ejemplo n.º 4
0
def download_from_sql(request):
    sql = request.POST.get('sql')
    query = Query(sql=sql, title='')
    ql = query.log(request.user)
    query.title = 'Playground - %s' % ql.id
    return _export(request, query)