~ocurero/sqlalchemy-querybuilder

SQLAlchemy query builder for jQuery QueryBuilder

#1 Test

~ocurero filed ticket on sqlalchemy-querybuilder todo

3 years ago
~ocurero/sqlalchemy-querybuilder

New ticket tracker added

3 years ago

#SQLAlchemy query builder for jQuery QueryBuilder

Project Status: Active – The project has reached a stable, usable state and is being actively developed. builds.sr.ht status codecov readthedocs

This package implements a sqlalchemy query builder for json data generated with (but not limited to) jQuery QueryBuilder.

#Quickstart

Using sqlalchemy-querybuilder is very simple:

from sqlalchemy_querybuilder import Filter
from myapp import models, query

    rules = {
            "condition": "OR",
            "rules": [{
                       "field": "mytable.myfield",
                       "operator": "equal",
                       "value": "foo"
                       },
                      ],
             }

    myfilter = Filter(models, query)
    print(myfilter.querybuilder(rules))