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 sqlalchemy.ext.compiler import compiles | |
from sqlalchemy.sql.elements import ClauseElement | |
from sqlalchemy.sql import util as sqlutil | |
from sqlalchemy.sql.base import Executable, _generative | |
from sqlalchemy import select, exists, and_ | |
class Divide(Executable, ClauseElement): | |
def __init__(self, dividend, divisor, on=None, returning=None): |
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
import ast | |
_FILENAME = "<undefined>" | |
def magic(source, filename=_FILENAME): | |
a = ast.parse(source) | |
return Magic(filename).visit(a) | |
OlderNewer