Release v1.0.0

This commit is contained in:
2026-06-03 09:43:13 +02:00
parent 5bfa0fea94
commit 989d8311d3
3 changed files with 20 additions and 2 deletions
+12 -1
View File
@@ -103,7 +103,18 @@ from sqlmem import ReadOnlyError, UnsupportedQueryError
## Logging
SQLmem uses [loguru](https://github.com/Delgan/loguru). Set `SQLMEM_DEBUG=true` for verbose output (every query, cache hit/miss, backup events). Default level is INFO.
SQLmem is silent by default. Call `add_sink()` to opt in:
```python
import sys
from sqlmem import add_sink
add_sink(sys.stderr) # INFO by default
add_sink(sys.stderr, level="DEBUG") # verbose: every query, cache hit/miss, backup
add_sink("sqlmem.log", rotation="10 MB") # to a file
```
Set `SQLMEM_DEBUG=true` in `.env` to make the default level DEBUG when no explicit `level` is passed to `add_sink()`.
## Limitations