jaf-py 2.4.2__py3-none-any.whl → 2.4.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- jaf/memory/providers/postgres.py +10 -4
- {jaf_py-2.4.2.dist-info → jaf_py-2.4.3.dist-info}/METADATA +1 -1
- {jaf_py-2.4.2.dist-info → jaf_py-2.4.3.dist-info}/RECORD +7 -7
- {jaf_py-2.4.2.dist-info → jaf_py-2.4.3.dist-info}/WHEEL +0 -0
- {jaf_py-2.4.2.dist-info → jaf_py-2.4.3.dist-info}/entry_points.txt +0 -0
- {jaf_py-2.4.2.dist-info → jaf_py-2.4.3.dist-info}/licenses/LICENSE +0 -0
- {jaf_py-2.4.2.dist-info → jaf_py-2.4.3.dist-info}/top_level.txt +0 -0
jaf/memory/providers/postgres.py
CHANGED
|
@@ -261,16 +261,22 @@ async def create_postgres_provider(config: PostgresConfig) -> Result[PostgresPro
|
|
|
261
261
|
# but we can continue and hope the database already exists.
|
|
262
262
|
print(f"Could not ensure database exists: {e}")
|
|
263
263
|
|
|
264
|
-
# Now connect to the target database
|
|
264
|
+
# Now connect to the target database using connection pool with max_connections
|
|
265
265
|
if config.connection_string:
|
|
266
|
-
client = await asyncpg.
|
|
266
|
+
client = await asyncpg.create_pool(
|
|
267
|
+
dsn=config.connection_string,
|
|
268
|
+
min_size=1,
|
|
269
|
+
max_size=config.max_connections
|
|
270
|
+
)
|
|
267
271
|
else:
|
|
268
|
-
client = await asyncpg.
|
|
272
|
+
client = await asyncpg.create_pool(
|
|
269
273
|
host=config.host,
|
|
270
274
|
port=config.port,
|
|
271
275
|
user=config.username,
|
|
272
276
|
password=config.password,
|
|
273
|
-
database=config.database
|
|
277
|
+
database=config.database,
|
|
278
|
+
min_size=1,
|
|
279
|
+
max_size=config.max_connections
|
|
274
280
|
)
|
|
275
281
|
|
|
276
282
|
table_name = config.table_name or "conversations"
|
|
@@ -61,7 +61,7 @@ jaf/memory/types.py,sha256=rAilMYhAzJLceGkdk1U_worRTNw75ZJV5ZuXYR6oyLA,8484
|
|
|
61
61
|
jaf/memory/utils.py,sha256=t_sH2txnbYLO_noT6ysmJfiU6lX7b_sp_g0lNQ2B61A,6881
|
|
62
62
|
jaf/memory/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
63
63
|
jaf/memory/providers/in_memory.py,sha256=5hiCumGK2c6SlEFdPAacC493JY1hDDfY1CaMxx8pS2E,12558
|
|
64
|
-
jaf/memory/providers/postgres.py,sha256=
|
|
64
|
+
jaf/memory/providers/postgres.py,sha256=mq6nB0FNet62QFh_NP-luKKmHLhkD8en5B1hhI512rA,12379
|
|
65
65
|
jaf/memory/providers/redis.py,sha256=_eU_1vMQzhskp0_yAqyANXrdb1ZjXm7kP6vqrz0YgOg,9274
|
|
66
66
|
jaf/plugins/__init__.py,sha256=8GMtLld3UpkJVJ05gfVthw8tVXW0ALL6e6s88cKiCwY,796
|
|
67
67
|
jaf/plugins/base.py,sha256=clQohPxT19zj-AjRtDoevE26xS5-cm7qdUOW2VX2InY,12575
|
|
@@ -84,9 +84,9 @@ jaf/visualization/functional_core.py,sha256=zedMDZbvjuOugWwnh6SJ2stvRNQX1Hlkb9Ab
|
|
|
84
84
|
jaf/visualization/graphviz.py,sha256=WTOM6UP72-lVKwI4_SAr5-GCC3ouckxHv88ypCDQWJ0,12056
|
|
85
85
|
jaf/visualization/imperative_shell.py,sha256=GpMrAlMnLo2IQgyB2nardCz09vMvAzaYI46MyrvJ0i4,2593
|
|
86
86
|
jaf/visualization/types.py,sha256=QQcbVeQJLuAOXk8ynd08DXIS-PVCnv3R-XVE9iAcglw,1389
|
|
87
|
-
jaf_py-2.4.
|
|
88
|
-
jaf_py-2.4.
|
|
89
|
-
jaf_py-2.4.
|
|
90
|
-
jaf_py-2.4.
|
|
91
|
-
jaf_py-2.4.
|
|
92
|
-
jaf_py-2.4.
|
|
87
|
+
jaf_py-2.4.3.dist-info/licenses/LICENSE,sha256=LXUQBJxdyr-7C4bk9cQBwvsF_xwA-UVstDTKabpcjlI,1063
|
|
88
|
+
jaf_py-2.4.3.dist-info/METADATA,sha256=b3kDMPBoPR_Z44jyVnZHnpHM-bSDTkuXeSegWXsUSHw,27712
|
|
89
|
+
jaf_py-2.4.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
90
|
+
jaf_py-2.4.3.dist-info/entry_points.txt,sha256=OtIJeNJpb24kgGrqRx9szGgDx1vL9ayq8uHErmu7U5w,41
|
|
91
|
+
jaf_py-2.4.3.dist-info/top_level.txt,sha256=Xu1RZbGaM4_yQX7bpalo881hg7N_dybaOW282F15ruE,4
|
|
92
|
+
jaf_py-2.4.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|