]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Added Dumper.quote()
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 28 Oct 2020 15:42:25 +0000 (16:42 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 28 Oct 2020 15:49:38 +0000 (16:49 +0100)
commitb8fad3b9d83109b2ef8d050d542a856fdc084e53
treeb69655c662c4977dbc571332dac0275503cdd684
parent708e76d1960bf3fe0d3be771325532869330022e
Added Dumper.quote()

Return a representation of the object in a format useful for embedding
in SQL. For most objects this is only the representation in quotes and
escaped, for some it's a different value (numbers, bools, NULL).

None can be quoted but not dumped, so it can be passed to an
sql.Literal() without the need of a special case.
psycopg3/psycopg3/adapt.py
psycopg3/psycopg3/sql.py
psycopg3/psycopg3/types/__init__.py
psycopg3/psycopg3/types/numeric.py
psycopg3/psycopg3/types/singletons.py [new file with mode: 0644]
tests/test_adapt.py
tests/test_sql.py
tests/types/test_date.py
tests/types/test_numeric.py
tests/types/test_singletons.py [new file with mode: 0644]
tests/types/test_text.py