Compare commits
3 Commits
8744f458cc
...
v1.0.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 989d8311d3 | |||
| 5bfa0fea94 | |||
| 650d630309 |
@@ -31,6 +31,11 @@ coverage.xml
|
|||||||
.vscode/
|
.vscode/
|
||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
|
# Environment variables
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
!.env.example
|
||||||
|
|
||||||
# OS
|
# OS
|
||||||
.DS_Store
|
.DS_Store
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
|||||||
@@ -6,6 +6,13 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## [1.0.0] - 2026-06-03
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- `pyproject.toml` — bumped version to `1.0.0`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## [0.4.0] - 2026-06-03
|
## [0.4.0] - 2026-06-03
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -103,7 +103,18 @@ from sqlmem import ReadOnlyError, UnsupportedQueryError
|
|||||||
|
|
||||||
## Logging
|
## 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
|
## Limitations
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "sqlmem"
|
name = "sqlmem"
|
||||||
version = "0.4.0"
|
version = "1.0.0"
|
||||||
description = ""
|
description = ""
|
||||||
authors = [
|
authors = [
|
||||||
{name = "jan.doubravsky@gmail.com"}
|
{name = "jan.doubravsky@gmail.com"}
|
||||||
|
|||||||
Reference in New Issue
Block a user