_where() rendered None conditions as col = %s bound to NULL, which sql never matches, so get/get_one/exists/delete silently missed NULL rows despite insert() writing NULL fine — fixed to emit col IS NULL, in lockstep with the psql lib's identical fix. Separately, __init__ now rejects autocommit=False in pool_kwargs: with it, _run/_fetchall never commit, so on pool release aiomysql closes the in-transaction connection and MySQL rolls back server-side while insert()/delete()/upsert()/execute() still return success signals (lastrowid/rowcount) for writes that were silently discarded. Signed-off-by: disqualifier <dev@disqualifier.me>
16 lines
377 B
TOML
16 lines
377 B
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "mysql"
|
|
version = "0.1.3"
|
|
description = "async mysql/mariadb wrapper over aiomysql: two-layer API (friendly verbs + raw escape hatch), fail-loud, config-free"
|
|
requires-python = ">=3.10"
|
|
dependencies = [
|
|
"aiomysql>=0.2",
|
|
]
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/mysql"]
|