File: buffer.py

package info (click to toggle)
py-postgresql 1.2.1%2Bgit20180803.ef7b9a9-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,620 kB
  • sloc: python: 18,317; ansic: 2,024; sql: 282; sh: 26; makefile: 22
file content (16 lines) | stat: -rw-r--r-- 522 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
##
# .protocol.buffer
##
"""
This is an abstraction module that provides the working buffer implementation.
If a C compiler is not available on the system that built the package, the slower
`postgresql.protocol.pbuffer` module can be used in
`postgresql.port.optimized.buffer`'s absence.

This provides a convenient place to import the necessary module without
concerning the local code with the details.
"""
try:
	from ..port.optimized import pq_message_stream
except ImportError:
	from .pbuffer import pq_message_stream