@@ -128,7 +128,7 @@ async def test_asyncpg_works(pglite_tcp_manager):
128128 conn = await asyncpg.connect(
129129 host = config.tcp_host,
130130 port = config.tcp_port,
131- user = " postgres" ,
131+ user = " postgres" ,
132132 password = " postgres" ,
133133 database = " postgres" ,
134134 ssl = False ,
@@ -257,6 +257,7 @@ with SQLAlchemyPGliteManager(config) as manager:
257257py-pglite supports both Unix domain sockets (default) and TCP sockets for different use cases:
258258
259259### Unix Socket Mode (Default)
260+
260261``` python
261262# Default configuration - uses Unix domain socket for best performance
262263from py_pglite import PGliteManager
@@ -267,6 +268,7 @@ with PGliteManager() as db:
267268```
268269
269270### TCP Socket Mode
271+
270272``` python
271273from py_pglite import PGliteConfig, PGliteManager
272274
@@ -285,13 +287,15 @@ with PGliteManager(config) as db:
285287```
286288
287289** When to use TCP mode:**
290+
288291- Any TCP-only clients (doesn't support Unix sockets)
289292- Cloud-native testing environments
290293- Docker containers with network isolation
291294- Testing network-based database tools
292295- ** Required for asyncpg** : asyncpg only works in TCP mode
293296
294297** Important notes:**
298+
295299- PGlite Socket supports only ** one active connection** at a time
296300- SSL is not supported - always use ` sslmode=disable `
297301- Unix sockets are faster for local testing (default)
@@ -324,7 +328,7 @@ with PGliteManager(config) as manager:
324328 host = config.tcp_host,
325329 port = config.tcp_port,
326330 user = " postgres" ,
327- password = " postgres" ,
331+ password = " postgres" ,
328332 database = " postgres" ,
329333 ssl = False ,
330334 server_settings = {} # Required for PGlite compatibility
0 commit comments