File: libpq.py

package info (click to toggle)
python-psycopg2cffi 2.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 824 kB
  • sloc: python: 10,828; makefile: 17
file content (7 lines) | stat: -rw-r--r-- 248 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
try:
    from psycopg2cffi._impl._libpq import ffi, lib as libpq
except ImportError:
    from psycopg2cffi._impl._build_libpq import ffi, C_SOURCE, C_SOURCE_KWARGS
    libpq = ffi.verify(C_SOURCE, **C_SOURCE_KWARGS)

PG_VERSION = libpq._PG_VERSION