423baff73b
- Docker bridge 网络隔离(8000 端口封死) - Gunicorn 4 Worker 多进程 - Alembic 数据库迁移基线 - 日志轮转 20m×3 - JWT 密钥 + DB 密码 + CORS 收紧 - 3-2-1 备份链路(NAS + R740-B 冷备) - 连接池 pool_pre_ping + pool_recycle=3600
50 lines
1.2 KiB
Cython
50 lines
1.2 KiB
Cython
# Copyright (C) 2016-present the asyncpg authors and contributors
|
|
# <see AUTHORS file>
|
|
#
|
|
# This module is part of asyncpg and is released under
|
|
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
cimport cython
|
|
cimport cpython
|
|
|
|
from . cimport cpythonx
|
|
|
|
from libc.stdint cimport int8_t, uint8_t, int16_t, uint16_t, \
|
|
int32_t, uint32_t, int64_t, uint64_t, \
|
|
INT16_MIN, INT16_MAX, INT32_MIN, INT32_MAX, \
|
|
UINT32_MAX, INT64_MIN, INT64_MAX, UINT64_MAX
|
|
|
|
|
|
from . cimport hton
|
|
from . cimport tohex
|
|
|
|
from .debug cimport PG_DEBUG
|
|
from . import types as pgproto_types
|
|
|
|
|
|
include "./consts.pxi"
|
|
include "./frb.pyx"
|
|
include "./buffer.pyx"
|
|
include "./uuid.pyx"
|
|
|
|
include "./codecs/context.pyx"
|
|
|
|
include "./codecs/bytea.pyx"
|
|
include "./codecs/text.pyx"
|
|
|
|
include "./codecs/datetime.pyx"
|
|
include "./codecs/float.pyx"
|
|
include "./codecs/int.pyx"
|
|
include "./codecs/json.pyx"
|
|
include "./codecs/jsonpath.pyx"
|
|
include "./codecs/uuid.pyx"
|
|
include "./codecs/numeric.pyx"
|
|
include "./codecs/bits.pyx"
|
|
include "./codecs/geometry.pyx"
|
|
include "./codecs/hstore.pyx"
|
|
include "./codecs/misc.pyx"
|
|
include "./codecs/network.pyx"
|
|
include "./codecs/tid.pyx"
|
|
include "./codecs/pg_snapshot.pyx"
|