DefPixel 0.1.2__tar.gz → 0.1.3__tar.gz
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.
- {defpixel-0.1.2 → defpixel-0.1.3}/DefPixel.egg-info/PKG-INFO +1 -1
- {defpixel-0.1.2 → defpixel-0.1.3}/DefPixel.egg-info/SOURCES.txt +17 -2
- {defpixel-0.1.2 → defpixel-0.1.3}/PKG-INFO +1 -1
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/Sqlite/Queries.en.md +14 -2
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/Sqlite/Queries.md +14 -2
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/1/REQUIREMENTS.md +2 -2
- defpixel-0.1.3/issues/fix/4/CHANGELOG.md +5 -0
- defpixel-0.1.3/issues/fix/4/IMPLEMENTS.md +24 -0
- defpixel-0.1.3/issues/fix/4/PLAN.md +36 -0
- defpixel-0.1.3/issues/fix/4/README.md +80 -0
- defpixel-0.1.3/issues/fix/4/REQUIREMENTS.md +79 -0
- defpixel-0.1.3/issues/fix/4/TASKS.md +21 -0
- defpixel-0.1.3/issues/fix/4/implements/1793212001909.md +7 -0
- defpixel-0.1.3/issues/fix/4/implements/1793212156793.md +5 -0
- defpixel-0.1.3/issues/fix/4/implements/1793213635034.md +10 -0
- defpixel-0.1.3/issues/fix/4/tasks/1793211561655.md +5 -0
- defpixel-0.1.3/issues/fix/4/tasks/1793212001910.md +9 -0
- defpixel-0.1.3/issues/fix/4/tasks/1793212156794.md +9 -0
- defpixel-0.1.3/issues/fix/4/tasks/1793212350519.md +5 -0
- defpixel-0.1.3/issues/fix/4/tasks/1793213635035.md +9 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Executors/Delete.py +6 -1
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Executors/Select.py +20 -2
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Executors/Update.py +10 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Expr.py +35 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Exprs/Alias.py +5 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Exprs/Is.py +15 -2
- defpixel-0.1.3/src/DataAccessObject/Implements/Sqlite/Filters/Compare.py +84 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Filters/Operator.py +17 -1
- defpixel-0.1.3/src/DataAccessObject/Implements/Sqlite/Filters/String.py +34 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Function.py +4 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Functions/Common.py +21 -3
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Functions/Condition.py +13 -3
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Joins/Join.py +8 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Orders/Ascend.py +4 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Orders/Descend.py +4 -0
- defpixel-0.1.3/tests/sqlite/__init__.py +0 -0
- {defpixel-0.1.2/tests → defpixel-0.1.3/tests/sqlite}/test_sqlite.py +199 -8
- defpixel-0.1.2/src/DataAccessObject/Implements/Sqlite/Filters/Compare.py +0 -149
- defpixel-0.1.2/src/DataAccessObject/Implements/Sqlite/Filters/String.py +0 -23
- {defpixel-0.1.2 → defpixel-0.1.3}/.github/ISSUE_TEMPLATE/01.feature.yml +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/.github/ISSUE_TEMPLATE/02.bug.yml +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/.github/ISSUE_TEMPLATE/03.fix.yml +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/.github/ISSUE_TEMPLATE/04.task.yml +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/.github/scripts/create-issues-from-reviews.mjs +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/.github/scripts/create-pr-from-issue.mjs +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/.github/scripts/tests/create-issues-from-reviews.test.mjs +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/.github/scripts/tests/create-pr-from-issue.test.mjs +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/.github/workflows/ci.yml +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/.github/workflows/create-issues-from-reviews.yml +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/.github/workflows/create-pr-from-issue.yml +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/.gitignore +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/DEV.ORM.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/DefPixel.egg-info/dependency_links.txt +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/DefPixel.egg-info/requires.txt +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/DefPixel.egg-info/top_level.txt +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/LICENSE +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/README.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/README.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/README.setup.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Connection.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Connection.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/CRUD.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/CRUD.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Connection.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Connection.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Functions.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Functions.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/JSON.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/JSON.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Modeling.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Modeling.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Pool.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Pool.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Queries.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Queries.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/README.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/README.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Relationships.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Relationships.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Schemas.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Schemas.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Transactions.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Transactions.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Types.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Types.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Views.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/PostgreSQL/Views.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/Sqlite/CRUD.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/Sqlite/CRUD.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/Sqlite/Connection.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/Sqlite/Connection.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/Sqlite/Modeling.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/Sqlite/Modeling.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/Sqlite/README.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/Sqlite/README.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/Sqlite/Relationships.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/Sqlite/Relationships.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/Sqlite/Transactions.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/Sqlite/Transactions.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/Sqlite/Views.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database/Sqlite/Views.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Database.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Document.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Document.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Index.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Index.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/KeyValue.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/KeyValue.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Modeling.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/Modeling.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/README.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/Implements/README.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/README.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/docs/README.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/instructions/CODE.instructions.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/instructions/DOCS.instructions.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/instructions/ORM.instructions.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/instructions/README.instructions.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/34/CHANGELOG.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/34/IMPLEMENTS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/34/PLAN.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/34/README.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/34/REQUIREMENTS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/34/TASKS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/34/implements/1793211186135.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/34/implements/1793212686004.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/34/tasks/1793211186136.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/34/tasks/1793212686005.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/7/CHANGELOG.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/7/IMPLEMENTS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/7/PLAN.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/7/README.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/7/REQUIREMENTS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/7/TASKS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/7/tasks/001./354/202/255/354/240/234/354/213/244/355/214/250/353/266/204/354/204/235/352/263/274/354/232/224/352/265/254/354/202/254/355/225/255.md" +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/7/tasks/002.PostgreSQL15-17/354/236/254/355/230/204/355/231/225/354/235/270.md" +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/7/tasks/003./352/265/254/355/230/204/352/263/204/355/232/215/354/236/221/354/204/261.md" +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/7/tasks/004./354/202/255/354/240/234/354/210/234/354/204/234/354/210/230/354/240/225/352/263/274/354/235/270/354/210/230/352/262/200/354/246/235.md" +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/8/CHANGELOG.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/8/IMPLEMENTS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/8/PLAN.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/8/README.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/8/REQUIREMENTS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/8/TASKS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/8/implements/1793031495015.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/8/tasks/1793031201018.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/8/tasks/1793031249831.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/8/tasks/1793031369446.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/8/tasks/1793031481280.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/8/tasks/1793031581910.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/8/tasks/1793032051537.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/8/tasks/1793032246121.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/9/CHANGELOG.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/9/IMPLEMENTS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/9/PLAN.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/9/README.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/9/REQUIREMENTS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/9/TASKS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/9/implements/1793034327433.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/9/tasks/1793033521441.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/9/tasks/1793033766521.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/9/tasks/1793033902299.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/9/tasks/1793034327432.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/9/tasks/1793034436251.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/bug/9/tasks/1793035062584.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/1/CHANGELOG.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/1/IMPLEMENTS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/1/PLAN.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/1/README.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/1/tasks/0000000000001.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/1/tasks/0000000000002.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/1/tasks/0000000000003.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/1/tasks/0000000000004.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/1/tasks/0000000000005.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/1/tasks/0000000000006.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/1/tasks/0000000000007.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/2/CHANGELOG.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/2/IMPLEMENTS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/2/PLAN.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/2/README.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/2/REQUIREMENTS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/2/TASKS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/2/implements/1793172078287.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/2/implements/1793172876484.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/2/tasks/1793171073027.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/2/tasks/1793171243070.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/2/tasks/1793172011093.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/2/tasks/1793172078288.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/2/tasks/1793172169468.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/2/tasks/1793172207963.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/2/tasks/1793172504198.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/feature/2/tasks/1793172876485.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/CHANGELOG.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/IMPLEMENTS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/PLAN.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/README.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/REQUIREMENTS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/TASKS.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/docs/CopilotReviewIssues.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/docs/CopilotReviewIssuesSetup.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/implements/1793037941453.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/implements/1793039204492.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/implements/1793039366647.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/implements/1793098657411.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/implements/1793098918299.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/implements/1793099644986.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/implements/1793101248750.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/implements/1793116649322.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/implements/1793117393399.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/implements/1793119721621.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/implements/1793124598141.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/implements/1793125061721.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/implements/1793125970742.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/implements/1793126424855.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/implements/1793128098794.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/implements/1793128214238.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/implements/1793128269710.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/implements/1793208647028.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793037941452.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793037941454.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793039014363.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793097110598.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793098657410.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793098918289.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793099634974.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793101248734.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793104764960.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793110485287.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793111110350.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793116649323.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793117393400.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793119721622.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793120483224.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793123911981.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793124598142.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793125061722.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793125970743.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793126424856.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/issues/task/12/tasks/1793208647029.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/res/docker/postgresql/postgresql-15.yml +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/res/docker/postgresql/postgresql-16.yml +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/res/docker/postgresql/postgresql-17.yml +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/res/docker/postgresql/postgresql-18.yml +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/01.Connection.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/02.Timezone.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/03.Modeling.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/04.NumericAndText.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/05.DateAndTime.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/06.BinaryAndBoolean.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/07.NativeTypes.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/08.CRUD.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/09.ParameterBinding.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/10.Conditions.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/11.Expressions.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/12.Grouping.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/13.Aggregates.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/14.WindowFunctions.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/15.DateFunctions.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/16.JSON.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/17.JSONOperators.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/18.Arrays.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/19.JSONAggregates.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/20.SchemasAndSequences.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/21.Constraints.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/22.Indexes.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/23.Joins.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/24.Transactions.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/25.Autocommit.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/26.Pool.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/27.Views.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/Configuration.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/README.en.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/PostgreSQL/README.md +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/Sqlite/01.CRUD.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/Sqlite/02.Modeling.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/Sqlite/03.Queries.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/Sqlite/04.Relationships.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/Sqlite/05.Transactions.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database/Sqlite/06.Views.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Database.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Document.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/Index.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/samples/KeyValue.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/setup.cfg +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/setup.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Configuration.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Connection.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Adapters/Array.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Adapters/JavaScriptObjectNotation.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Adapters/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Column.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Compiler.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Configuration.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Connection.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Constraint.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Constraints/Check.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Constraints/Columns.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Constraints/ForeignKey.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Constraints/PrimaryKey.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Constraints/Unique.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Constraints/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Context.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Cursor.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Executors/Create.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Executors/Delete.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Executors/Drop.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Executors/Get.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Executors/Insert.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Executors/Query.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Executors/Select.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Executors/Update.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Executors/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Expr.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Exprs/Common.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Exprs/Compare.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Exprs/Condition.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Exprs/JavaScriptObjectNotation.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Exprs/Operator.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Exprs/String.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Exprs/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Function.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Functions/Common.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Functions/DateTime.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Functions/JavaScriptObjectNotation.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Functions/Sequence.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Functions/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Index.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Joins/FullOuter.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Joins/Inner.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Joins/Join.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Joins/LeftOuter.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Joins/RightOuter.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Joins/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Mapping.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Orders.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Pool.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Schema.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Sequence.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Session.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Type.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Types/Array.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Types/Binary.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Types/Bool.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Types/DateTime.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Types/JavaScriptObjectNotation.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Types/Numeric.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Types/Size.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Types/String.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/Types/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/PostgreSQL/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Configuration.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Connection.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Constraint.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Constraints/ForeignKey.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Constraints/PrimaryKey.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Constraints/Unique.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Constraints/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Context.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Cursor.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Executors/Create.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Executors/Drop.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Executors/Get.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Executors/Insert.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Executors/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Exprs/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Filters/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Functions/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Index.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Joins/FullOuter.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Joins/Inner.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Joins/LeftOuter.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Joins/RightOuter.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Joins/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Mapping.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Orders/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Session.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Type.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Types/Binary.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Types/DateTime.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Types/Numeric.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Types/String.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Types/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Properties/Database/Context.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Properties/Database/Cursor.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Properties/Database/Database.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Properties/Database/Executor.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Properties/Database/Executors.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Properties/Database/Fetch.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Properties/Database/Filter.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Properties/Database/Run.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Properties/Database/Session.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Properties/Database/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Properties/Dataclass.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Properties/Document/Document.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Properties/Document/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Properties/Index/Index.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Properties/Index/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Properties/KeyValue/KeyValue.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Properties/KeyValue/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Properties/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/Validator/Pattern.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/Validator/Patterns/Array.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/Validator/Patterns/Common.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/Validator/Patterns/Compare.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/Validator/Patterns/Condition.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/Validator/Patterns/DataObject.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/Validator/Patterns/DateTime.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/Validator/Patterns/Number.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/Validator/Patterns/Object.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/Validator/Patterns/Size.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/Validator/Patterns/String.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/Validator/Patterns/Type.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/Validator/Patterns/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/Validator/Validate.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/Validator/Validator.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/Validator/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/src/__init__.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/tests/postgresql/base.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/tests/postgresql/test_compile.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/tests/postgresql/test_configuration.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/tests/postgresql/test_connection.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/tests/postgresql/test_ddl.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/tests/postgresql/test_docs.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/tests/postgresql/test_executors.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/tests/postgresql/test_expressions.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/tests/postgresql/test_functions.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/tests/postgresql/test_samples.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/tests/postgresql/test_session.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/tests/postgresql/test_types.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/tests/test_dao_protocols.py +0 -0
- {defpixel-0.1.2 → defpixel-0.1.3}/tests/test_postgresql_optional.py +0 -0
|
@@ -160,6 +160,20 @@ issues/feature/2/tasks/1793172169468.md
|
|
|
160
160
|
issues/feature/2/tasks/1793172207963.md
|
|
161
161
|
issues/feature/2/tasks/1793172504198.md
|
|
162
162
|
issues/feature/2/tasks/1793172876485.md
|
|
163
|
+
issues/fix/4/CHANGELOG.md
|
|
164
|
+
issues/fix/4/IMPLEMENTS.md
|
|
165
|
+
issues/fix/4/PLAN.md
|
|
166
|
+
issues/fix/4/README.md
|
|
167
|
+
issues/fix/4/REQUIREMENTS.md
|
|
168
|
+
issues/fix/4/TASKS.md
|
|
169
|
+
issues/fix/4/implements/1793212001909.md
|
|
170
|
+
issues/fix/4/implements/1793212156793.md
|
|
171
|
+
issues/fix/4/implements/1793213635034.md
|
|
172
|
+
issues/fix/4/tasks/1793211561655.md
|
|
173
|
+
issues/fix/4/tasks/1793212001910.md
|
|
174
|
+
issues/fix/4/tasks/1793212156794.md
|
|
175
|
+
issues/fix/4/tasks/1793212350519.md
|
|
176
|
+
issues/fix/4/tasks/1793213635035.md
|
|
163
177
|
issues/task/12/CHANGELOG.md
|
|
164
178
|
issues/task/12/IMPLEMENTS.md
|
|
165
179
|
issues/task/12/PLAN.md
|
|
@@ -403,7 +417,6 @@ src/Validator/Patterns/Type.py
|
|
|
403
417
|
src/Validator/Patterns/__init__.py
|
|
404
418
|
tests/test_dao_protocols.py
|
|
405
419
|
tests/test_postgresql_optional.py
|
|
406
|
-
tests/test_sqlite.py
|
|
407
420
|
tests/postgresql/base.py
|
|
408
421
|
tests/postgresql/test_compile.py
|
|
409
422
|
tests/postgresql/test_configuration.py
|
|
@@ -415,4 +428,6 @@ tests/postgresql/test_expressions.py
|
|
|
415
428
|
tests/postgresql/test_functions.py
|
|
416
429
|
tests/postgresql/test_samples.py
|
|
417
430
|
tests/postgresql/test_session.py
|
|
418
|
-
tests/postgresql/test_types.py
|
|
431
|
+
tests/postgresql/test_types.py
|
|
432
|
+
tests/sqlite/__init__.py
|
|
433
|
+
tests/sqlite/test_sqlite.py
|
|
@@ -33,7 +33,7 @@ from DefPixel.DataAccessObject.Implements.Sqlite import (
|
|
|
33
33
|
from DefPixel.DataAccessObject.Implements.Sqlite.Executors import Create, Insert, Select
|
|
34
34
|
from DefPixel.DataAccessObject.Implements.Sqlite.Exprs import Alias, IsNull
|
|
35
35
|
from DefPixel.DataAccessObject.Implements.Sqlite.Filters import (
|
|
36
|
-
And, GreaterThan, GreaterThanOrEqual, Like,
|
|
36
|
+
And, Equal, GreaterThan, GreaterThanOrEqual, Like,
|
|
37
37
|
)
|
|
38
38
|
from DefPixel.DataAccessObject.Implements.Sqlite.Functions import Average, Count, IfNull, Sum
|
|
39
39
|
from DefPixel.DataAccessObject.Implements.Sqlite.Orders import Ascend, Descend
|
|
@@ -132,7 +132,19 @@ Do not compare SQL NULL with `Equal(column, None)`. Use `IsNull(column)` or `IsN
|
|
|
132
132
|
|
|
133
133
|
`And` and `Or` insert operators but do not generate parentheses. Nested Python objects do not imply SQL grouping. When mixing AND and OR requires parentheses, use explicit parenthesized SQL and bind values.
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
Values in condition expressions are passed as `?` placeholders and execution arguments. This applies to WHERE and HAVING conditions, JOIN conditions, value-bearing function expressions, and page size/offset. For example:
|
|
136
|
+
|
|
137
|
+
```python
|
|
138
|
+
query = Select(Product).where(Equal(Product.price, 20))
|
|
139
|
+
print(query.query)
|
|
140
|
+
print(query.args)
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
`query.query` contains `?` instead of the value, and `query.args` returns `(20,)`. UPDATE arguments are ordered with SET values before WHERE values. The `run()` execution API and result shapes remain the same. However, code that reads `.query` directly now sees placeholders instead of literals, and `.args` is no longer empty for a Select with bound conditions.
|
|
144
|
+
|
|
145
|
+
Values are passed through SQLite driver binding rather than escaped into SQL literals. The existing supported value types and finite-float validation remain in effect. For SQL NULL conditions, use `IsNull` or `IsNotNull`, not `Equal(column, None)`.
|
|
146
|
+
|
|
147
|
+
Binding does not turn SQL structure into values. Table and column names or operators cannot be passed as bound values. When writing raw SQL, pass external values through `execute()` arguments. DDL defaults remain literals in schema declarations, and a Select with bound arguments cannot define a SQLite view. A partial index `expr` is a trusted SQL declaration, not a bound value.
|
|
136
148
|
|
|
137
149
|
## 4. Ordering and pages
|
|
138
150
|
|
|
@@ -33,7 +33,7 @@ from DefPixel.DataAccessObject.Implements.Sqlite import (
|
|
|
33
33
|
from DefPixel.DataAccessObject.Implements.Sqlite.Executors import Create, Insert, Select
|
|
34
34
|
from DefPixel.DataAccessObject.Implements.Sqlite.Exprs import Alias, IsNull
|
|
35
35
|
from DefPixel.DataAccessObject.Implements.Sqlite.Filters import (
|
|
36
|
-
And, GreaterThan, GreaterThanOrEqual, Like,
|
|
36
|
+
And, Equal, GreaterThan, GreaterThanOrEqual, Like,
|
|
37
37
|
)
|
|
38
38
|
from DefPixel.DataAccessObject.Implements.Sqlite.Functions import Average, Count, IfNull, Sum
|
|
39
39
|
from DefPixel.DataAccessObject.Implements.Sqlite.Orders import Ascend, Descend
|
|
@@ -132,7 +132,19 @@ SQL의 NULL은 `Equal(column, None)`으로 비교하지 않습니다. `Exprs`의
|
|
|
132
132
|
|
|
133
133
|
`And`·`Or`는 조건 사이에 연산자를 넣지만 괄호를 자동 생성하지 않습니다. 중첩한 Python 객체가 SQL의 괄호 그룹이 되는 것은 아닙니다. AND와 OR를 섞어 괄호가 필요한 경우 직접 SQL에 괄호를 명시하고 값을 바인딩하세요.
|
|
134
134
|
|
|
135
|
-
조건 표현식의 값은
|
|
135
|
+
조건 표현식의 값은 `?` 플레이스홀더와 실행 인자로 전달됩니다. WHERE·HAVING, JOIN 조건, 값이 포함된 함수 표현식과 페이지 크기·offset이 이 방식으로 바인딩됩니다. 예를 들어:
|
|
136
|
+
|
|
137
|
+
```python
|
|
138
|
+
query = Select(Product).where(Equal(Product.price, 20))
|
|
139
|
+
print(query.query)
|
|
140
|
+
print(query.args)
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
`query.query`에는 값 대신 `?`가 들어가고 `query.args`는 `(20,)`을 반환합니다. UPDATE의 인자는 SET 값 다음 WHERE 값 순서입니다. `run()`을 통한 실행 방법과 결과 형식은 같습니다. 다만 `.query` 문자열을 직접 읽는 코드에서는 기존 리터럴 대신 플레이스홀더를 보며, 조건이 있는 Select의 `.args`는 더 이상 빈 튜플이 아닙니다.
|
|
144
|
+
|
|
145
|
+
값 인코딩은 작은따옴표를 직접 이스케이프하는 방식이 아니라 SQLite 드라이버의 바인딩을 사용합니다. 기존에 허용하던 값 형식과 유한 실수 검증은 유지됩니다. NULL 조건은 `Equal(column, None)` 대신 `IsNull`·`IsNotNull`을 사용하세요.
|
|
146
|
+
|
|
147
|
+
바인딩은 SQL 구조를 값으로 바꾸지 않습니다. 테이블·컬럼 이름이나 연산자 자리에 값을 넘길 수 없으며, raw SQL을 직접 작성할 때도 외부 입력값은 `execute()`의 인자로 전달하세요. DDL 기본값은 스키마 선언에 포함되는 리터럴로 유지되고, 바인딩 인자가 있는 Select는 SQLite 뷰 정의에 사용할 수 없습니다. 부분 인덱스의 `expr`은 바인딩 값이 아닌 신뢰된 SQL 선언입니다.
|
|
136
148
|
|
|
137
149
|
## 4. 정렬과 페이지
|
|
138
150
|
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
- [Database Protocol들](../../../src/DataAccessObject/Properties/Database)은 `Database`, `Cursor`, `Context`, `Session`, `Executor`, `Executors`, `Run`, `Fetch`, `Filter` 계약을 제공한다. Protocol은 메서드 모양만 정의하며, 트랜잭션·결과·오류 의미는 구현체가 정하고 검증해야 한다.
|
|
33
33
|
- [SQLite 구현체](../../../src/DataAccessObject/Implements/Sqlite)는 직접 SQL 실행과 함께 dataclass 매핑, CRUD 실행 객체, 테이블·뷰 생성, 제약조건·인덱스, 필터·조인·정렬·집계, 세션 기반 트랜잭션을 제공한다.
|
|
34
34
|
- SQLite 모델 선언은 `@table`/`@view`와 `column(SQLiteType(...))`으로 이뤄지고, 저장소별 명세를 dataclass metadata에 연결한다. 현재 `Type`, `Mapping`, 생성되는 SQL은 SQLite 구현에 종속적이다.
|
|
35
|
-
- [기존 SQLite 테스트](../../../tests/test_sqlite.py)에는 기본 CRUD 외에도 dataclass 기본값·상속·slots·frozen 필드, 검증, SQL 결과, 세션·롤백 및 DDL 경계 테스트가 있다. 새 구현은 기존 기능을 손상하지 않고 PostgreSQL 동작을 별도로 검증해야 한다.
|
|
35
|
+
- [기존 SQLite 테스트](../../../tests/sqlite/test_sqlite.py)에는 기본 CRUD 외에도 dataclass 기본값·상속·slots·frozen 필드, 검증, SQL 결과, 세션·롤백 및 DDL 경계 테스트가 있다. 새 구현은 기존 기능을 손상하지 않고 PostgreSQL 동작을 별도로 검증해야 한다.
|
|
36
36
|
- [패키지 설정](../../../setup.py)은 Python 3.10 이상을 지원하며(3.9 지원 종료) 현재 `extras_require`는 비어 있다. PostgreSQL 드라이버와 풀은 `PostgreSQL` extra로 제공하고 기본 설치 의존성에 추가하지 않는다.
|
|
37
37
|
- [프로젝트 PostgreSQL Compose 설정](../../../res/docker/postgresql)은 PostgreSQL 15~18별 구성, 로컬 포트 `54315`~`54318`, `PGSQL_*` 환경 변수, 헬스체크와 버전별 영속 볼륨을 제공한다. 시간대는 `Asia/Seoul`, 공용 네트워크 이름은 `pixel`이다. 테스트·샘플의 기본 DB는 `sample`, 계정은 개발용 `username/password`다.
|
|
38
38
|
|
|
@@ -225,7 +225,7 @@ DefPixel 사용자는 PostgreSQL 서버를 사용하는 애플리케이션에서
|
|
|
225
225
|
|
|
226
226
|
- DefPixel 공통 계약: [src/DataAccessObject/Properties/Database](../../../src/DataAccessObject/Properties/Database)
|
|
227
227
|
- DefPixel SQLite 구현: [src/DataAccessObject/Implements/Sqlite](../../../src/DataAccessObject/Implements/Sqlite)
|
|
228
|
-
- DefPixel SQLite 테스트: [tests/test_sqlite.py](../../../tests/test_sqlite.py)
|
|
228
|
+
- DefPixel SQLite 테스트: [tests/sqlite/test_sqlite.py](../../../tests/sqlite/test_sqlite.py)
|
|
229
229
|
- DefPixel 패키지 설정: [setup.py](../../../setup.py)
|
|
230
230
|
- 작업공간 PostgreSQL 컨테이너: [res/docker/postgresql](../../../../res/docker/postgresql)
|
|
231
231
|
- 원본 구현체: [`Liquirizia.DataAccessObject.Implements.PostgreSQL/src`](../../../../Liquirizia.DataAccessObject.Implements.PostgreSQL/src)
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Sqlite 쿼리 값 바인딩
|
|
2
|
+
|
|
3
|
+
조회·수정·삭제 조건, JOIN 조건, 값이 포함된 함수와 페이지 크기·offset이 SQLite 드라이버의 파라미터 바인딩을 사용합니다. SQL과 입력 데이터를 분리해 작은따옴표나 SQL 구문처럼 보이는 문자열도 값으로 처리합니다.
|
|
4
|
+
|
|
5
|
+
`run()`을 통한 실행과 결과 형태는 유지됩니다. `.query`를 직접 사용하는 코드는 이제 조건 값을 포함한 리터럴 SQL 대신 `?` 플레이스홀더를 받으며, 대응하는 값은 `.args`에서 확인해야 합니다. DDL 기본값은 기존처럼 SQL 리터럴로 생성됩니다.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# 구현 결과
|
|
2
|
+
|
|
3
|
+
## 결과
|
|
4
|
+
|
|
5
|
+
SQLite 실행 쿼리에서 값이 포함된 표현식을 SQL 조각과 바인딩 인자로 분리했다. 조건 값은 `?` 플레이스홀더로 생성하고, Executor의 `.args`가 SQLite 커서에 전달할 값을 SQL 등장 순서대로 제공한다. `Cursor.run()`의 실행 흐름과 결과 처리 방식은 유지했다.
|
|
6
|
+
|
|
7
|
+
## 주요 변경
|
|
8
|
+
|
|
9
|
+
- `Expr`에 바인딩 값 변환과 하위 표현식 인자 수집을 추가했다. 기존 SQL 리터럴 생성은 DDL 기본값 용도로 남겨 일반 쿼리 바인딩과 분리했다.
|
|
10
|
+
- 비교 필터, `Like`, `And`·`Or`, JOIN, `IfNull`, `Alias`, 정렬 표현식이 플레이스홀더와 하위 인자를 전달하도록 변경했다.
|
|
11
|
+
- `Select`·`Get`이 투영식, JOIN, WHERE, GROUP BY, HAVING, ORDER BY 및 LIMIT·OFFSET 값을 쿼리 순서대로 반환한다. UPDATE는 SET 값을 WHERE 조건보다 먼저 전달하고, DELETE는 WHERE 조건 값을 전달한다.
|
|
12
|
+
- UPDATE SET·INSERT 매핑 검증, 식별자 quoting, DDL 기본값 생성 및 바인딩 인자가 있는 Select를 거부하는 뷰 계약을 유지했다. `And`·`Or`의 괄호 동작과 PostgreSQL·공통 Database 계약은 변경하지 않았다.
|
|
13
|
+
|
|
14
|
+
조건 표현식의 문자열을 직접 읽는 사용자 코드는 값 리터럴 대신 `?`를 보게 된다. 조건이 있는 Select와 다른 실행 객체의 `.args`도 이제 바인딩 값을 반환한다. `.run()` 호출과 조회 결과 형식은 유지된다.
|
|
15
|
+
|
|
16
|
+
## 영향 범위
|
|
17
|
+
|
|
18
|
+
- Sqlite 표현식과 Executor의 SQL·인자 생성
|
|
19
|
+
- Sqlite 조건, CRUD, 뷰 계약 관련 테스트
|
|
20
|
+
- Sqlite 쿼리 한국어·영어 매뉴얼
|
|
21
|
+
|
|
22
|
+
구현 단계별 기록: [Sqlite 쿼리 값 바인딩](./implements/1793212001909.md), [바인딩 값 검증 마무리](./implements/1793212156793.md), [중첩 표현식 인자 전달 보완](./implements/1793213635034.md)
|
|
23
|
+
|
|
24
|
+
검증 결과는 [작업·검증 요약](./TASKS.md)에 기록했다.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# 작업 계획
|
|
2
|
+
|
|
3
|
+
## 수행 순서
|
|
4
|
+
|
|
5
|
+
1. [x] **표현식 생성 경로 정리**
|
|
6
|
+
- `Expr` 및 값이 포함되는 비교·문자열 조건·함수 표현식에서 SQL 조각과 인자를 함께 얻도록 한다.
|
|
7
|
+
- `And`·`Or`·JOIN 같은 합성 표현식이 자식 표현식의 인자를 SQL 조각 순서로 전달하도록 한다.
|
|
8
|
+
- DDL에서 쓰는 리터럴 인코딩과 일반 쿼리 바인딩을 구분하고 기존 값 형식 검증을 유지한다.
|
|
9
|
+
|
|
10
|
+
2. [x] **Executor에 인자 전달**
|
|
11
|
+
- SELECT·GET의 projection, JOIN ON, WHERE, GROUP BY, HAVING, ORDER BY, LIMIT 및 OFFSET에서 인자를 SQL의 절 순서에 맞춰 노출한다.
|
|
12
|
+
- UPDATE에서 SET 인자 뒤에 WHERE 인자를 결합하고, DELETE에서 WHERE 인자를 노출한다.
|
|
13
|
+
- `Cursor.run()`의 기존 `query`·`args` 전달 경로와 직접 SQL 실행은 유지한다.
|
|
14
|
+
|
|
15
|
+
3. [x] **회귀 테스트**
|
|
16
|
+
- Executor별 query와 args, 플레이스홀더 순서, 중첩 표현식 및 반복 조회 안정성을 확인한다.
|
|
17
|
+
- 실제 SQLite 데이터베이스에서 조회·삽입·수정·삭제, escaping 대상 문자열, 유니코드, NULL·숫자·시간·바이너리와 기존 반환 형식을 확인한다.
|
|
18
|
+
- DDL 기본값, 인덱스 정의 및 뷰의 bound argument 거부 동작을 확인한다.
|
|
19
|
+
- 기존 Sqlite 테스트와 PostgreSQL 관련 테스트를 실행해 변경 범위가 격리됐는지 확인한다.
|
|
20
|
+
|
|
21
|
+
4. [x] **문서 갱신**
|
|
22
|
+
- `docs/Implements/Database/Sqlite/Queries.md`와 대응하는 영어 문서의 조건·함수 설명을 갱신한다.
|
|
23
|
+
- `.query`에 placeholder가 표시되고 `.args`에 값이 전달됨을 설명한다. 뷰·DDL 예외와 식별자·값 구분도 명시한다.
|
|
24
|
+
- 공개 동작 변화가 기존 사용자에게 미치는 영향을 문서에서 분명히 한다.
|
|
25
|
+
|
|
26
|
+
## 검증 방법
|
|
27
|
+
|
|
28
|
+
- 변경 전후 Executor의 `.query`와 `.args`를 직접 확인하여 플레이스홀더 수와 순서를 대조한다.
|
|
29
|
+
- 임시 `DefPixel` import 경로를 준비한 뒤 `python tests\sqlite\test_sqlite.py`: 25개 통과.
|
|
30
|
+
- `python -m unittest discover -s tests -p test_sqlite.py`: 이동 후 25개 발견·통과.
|
|
31
|
+
- 같은 import 경로에서 `python tests\test_dao_protocols.py`: 6개 통과, `python tests\test_postgresql_optional.py`: 2개 통과.
|
|
32
|
+
- 변경 문서의 상대 링크·줄바꿈·공백과 한국어·영어 내용 및 `git diff --check`를 확인했다.
|
|
33
|
+
|
|
34
|
+
## 현재 상태
|
|
35
|
+
|
|
36
|
+
- 요구사항 구현, 회귀 테스트 및 한영 매뉴얼 갱신 완료
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Sqlite 조건·표현식의 값 전달을 파라미터 바인딩으로 통일
|
|
2
|
+
|
|
3
|
+
## 이슈 정보
|
|
4
|
+
|
|
5
|
+
- 원본 이슈: [#4](https://github.com/yong5eon/DefPixel/issues/4)
|
|
6
|
+
- 출처: GitHub, `yong5eon/DefPixel`
|
|
7
|
+
- 상태: Open
|
|
8
|
+
- 작업 유형: `fix` (원본 이슈의 변경 유형: 일반 변경)
|
|
9
|
+
- 원본 레이블: `fix`, `sqlite` (`fix` 레이블은 이미 적용되어 있음)
|
|
10
|
+
- 작업 브랜치: `fix/4`
|
|
11
|
+
- 병합 대상 브랜치: 미확인
|
|
12
|
+
- 분석·실행 문서: [요구사항 명세](./REQUIREMENTS.md), [작업 계획](./PLAN.md)
|
|
13
|
+
- 종합 결과: [구현 요약](./IMPLEMENTS.md), [작업·검증 요약](./TASKS.md), [변경 로그](./CHANGELOG.md)
|
|
14
|
+
- 최신 단계별 기록: [구현](./implements/1793213635034.md), [작업·검증](./tasks/1793213635035.md)
|
|
15
|
+
|
|
16
|
+
## 소스 분석 요약
|
|
17
|
+
|
|
18
|
+
현재 구현은 데이터 값이 포함된 여러 표현식을 `Expr.literal()`로 SQL 문자열에 렌더링합니다. 이 함수는 문자열의 작은따옴표를 이스케이프하고 `datetime`, `bytes`, `bool`, 유한 숫자, `None`을 각각 SQL 리터럴로 변환하지만, SQL 구조와 값은 분리하지 않습니다.
|
|
19
|
+
|
|
20
|
+
- 비교 조건과 `Like`는 생성 시 값을 리터럴 문자열로 변환합니다. `And`·`Or`와 `Join`은 하위 조건의 문자열만 결합합니다.
|
|
21
|
+
- `Select.query`는 JOIN·WHERE·GROUP BY·HAVING·ORDER BY 및 선택 표현식을 조립하지만 `Select.args`는 항상 빈 튜플입니다. `Get`은 이 동작을 상속합니다.
|
|
22
|
+
- `Update.query`는 SET 위치에 `?`를 사용하고, 상속한 `Insert.args`는 SET 값만 전달합니다. WHERE 값도 바인딩하면 SQL 순서에 맞춰 SET 인자 뒤에 조건 인자를 추가해야 합니다.
|
|
23
|
+
- `Delete.query`도 조건을 문자열로 조립하고 `Delete.args`는 비어 있습니다.
|
|
24
|
+
- `IfNull`은 대체값을 SQL 리터럴로 함수 표현식에 포함합니다. 이는 WHERE/HAVING 조건뿐 아니라 SELECT의 투영식과 쿼리 작성기가 받는 그룹·정렬 표현식에도 해당할 수 있습니다.
|
|
25
|
+
- 실행 경로인 `Cursor.run()`은 각 실행 객체의 `query`와 `args`를 그대로 SQLite 커서에 전달합니다. 따라서 표현식 렌더링과 실행 객체의 인자 조립을 함께 바꿔야 합니다.
|
|
26
|
+
- `Create`는 컬럼 `DEFAULT`를 SQL에 직접 기록합니다. 뷰 정의는 바인딩 인자가 없는 실행 객체만 허용하며, 인덱스의 조건식은 별도 리터럴 인코더가 아닌 신뢰된 SQL 선언 문자열입니다.
|
|
27
|
+
- 현재 조건 표현식은 `And`·`Or`의 괄호를 자동 생성하지 않습니다. 서브쿼리 표현식 API와 `CHECK` 제약조건도 확인한 Sqlite 소스에서 찾지 못했습니다.
|
|
28
|
+
- 한국어·영어 Sqlite 쿼리 매뉴얼은 현재 조건 값의 리터럴 렌더링과 빈 `Select.args`를 안내하고 있어, 동작 변경 시 함께 갱신해야 합니다.
|
|
29
|
+
|
|
30
|
+
상세한 범위, 데이터 변환·호환성 요구사항과 완료 기준은 [요구사항 명세](./REQUIREMENTS.md)에 정리했습니다. 구현·검증 순서는 [작업 계획](./PLAN.md)을 따릅니다.
|
|
31
|
+
|
|
32
|
+
## 이슈 원문
|
|
33
|
+
|
|
34
|
+
### 변경 유형
|
|
35
|
+
|
|
36
|
+
일반 변경
|
|
37
|
+
|
|
38
|
+
### 변경 목적
|
|
39
|
+
|
|
40
|
+
현재 Sqlite 구현체는 INSERT 값과 UPDATE의 SET 값에는 파라미터 바인딩을 사용하지만, WHERE·HAVING 등의 조건 값은 SQL 리터럴로 변환해 쿼리 문자열에 직접 포함한다.
|
|
41
|
+
|
|
42
|
+
일반 쿼리의 값 전달을 Sqlite 드라이버의 파라미터 바인딩으로 통일하여 SQL 구조와 데이터를 분리하고, 값 처리 방식의 일관성과 유지보수성을 높인다.
|
|
43
|
+
|
|
44
|
+
### 제안하는 변경 내용
|
|
45
|
+
|
|
46
|
+
- 조건·표현식이 SQL 조각과 바인딩 인자를 함께 생성하도록 변경
|
|
47
|
+
- 일반 쿼리의 값은 ? 플레이스홀더로 표현하고 실행 시 인자로 전달
|
|
48
|
+
- SELECT·Get의 WHERE·HAVING, UPDATE·DELETE의 WHERE에 바인딩 적용
|
|
49
|
+
- 중첩 조건·함수·서브쿼리 등 값이 포함되는 표현식의 전달 경로를 확인하고 같은 정책 적용
|
|
50
|
+
- UPDATE의 SET 값과 WHERE 값 등 여러 위치에서 생성된 인자를 SQL 내 플레이스홀더 순서대로 결합
|
|
51
|
+
- 테이블·컬럼 등의 식별자 처리와 값 바인딩을 구분
|
|
52
|
+
- DDL의 DEFAULT·CHECK·인덱스·뷰 정의처럼 파라미터 바인딩을 사용할 수 없는 구문에는 별도의 리터럴 처리 유지
|
|
53
|
+
- 기존 공개 선언·호출 방식과 결과 형식은 가능한 한 유지하고, 필요한 호환성 변경은 명시
|
|
54
|
+
- 관련 테스트와 한국어·영어 사용 문서 갱신
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### 영향 범위
|
|
58
|
+
|
|
59
|
+
- Sqlite 조건·표현식·함수의 SQL 생성 및 값 인코딩
|
|
60
|
+
- Sqlite 실행 객체의 query·args 생성
|
|
61
|
+
- 실행 객체를 커서에 전달하는 경로와 관련 테스트
|
|
62
|
+
- 생성 SQL 문자열 또는 실행 객체의 args를 직접 참조하는 사용자 코드
|
|
63
|
+
- Sqlite 사용 문서와 샘플
|
|
64
|
+
- 다른 구현체와 공통 Database 계약은 원칙적으로 변경 대상에서 제외한다. 공통 계약 변경이 필요하면 영향 범위를 별도로 검토한다.
|
|
65
|
+
|
|
66
|
+
### 긴급 수정 정보
|
|
67
|
+
|
|
68
|
+
_No response_
|
|
69
|
+
|
|
70
|
+
### 완료 기준
|
|
71
|
+
|
|
72
|
+
- [ ] 일반 쿼리의 데이터 값이 SQL 리터럴로 직접 삽입되지 않고 플레이스홀더와 바인딩 인자로 분리된다
|
|
73
|
+
- [ ] INSERT·UPDATE의 값 바인딩과 SELECT·Get·UPDATE·DELETE의 조건 바인딩이 일관되게 동작한다
|
|
74
|
+
- [ ] WHERE·HAVING, 중첩 AND·OR, 함수·서브쿼리 등 지원되는 값 포함 경로를 검증한다
|
|
75
|
+
- [ ] 플레이스홀더와 바인딩 인자의 개수·순서가 일치하며, 같은 실행 객체에서 query·args를 반복 조회해도 결과가 일관된다
|
|
76
|
+
- [ ] 작은따옴표·유니코드·SQL 구문처럼 보이는 문자열·숫자·NULL·바이너리 등 지원 값의 처리와 기존 변환·검증 정책을 테스트한다
|
|
77
|
+
- [ ] DDL에서 필요한 리터럴 처리와 식별자 처리가 유지된다
|
|
78
|
+
- [ ] 실제 SQLite DB에서 조회·삽입·수정·삭제 결과와 기존 반환 형식을 회귀 검증한다
|
|
79
|
+
- [ ] 기존 SQLite 테스트가 통과하며 PostgreSQL과 공통 계약에 의도하지 않은 변경이 없다
|
|
80
|
+
- [ ] 한국어·영어 문서와 관련 샘플이 실제 동작과 일치하고, 호환성 영향이 있으면 명시된다
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# 요구사항 명세
|
|
2
|
+
|
|
3
|
+
## 목적
|
|
4
|
+
|
|
5
|
+
Sqlite의 일반 실행 쿼리에서 데이터 값을 SQL 문자열의 리터럴로 직접 렌더링하는 대신 `?` 플레이스홀더와 SQLite 바인딩 인자로 전달한다. SQL 구조와 데이터를 분리하면서 기존 실행 API, 값 변환 정책, 쿼리 결과 및 DDL 동작을 유지한다.
|
|
6
|
+
|
|
7
|
+
## 현재 동작과 근거
|
|
8
|
+
|
|
9
|
+
| 영역 | 현재 동작 | 근거 |
|
|
10
|
+
| --- | --- | --- |
|
|
11
|
+
| 값 인코딩 | `Expr.literal()`이 문자열·시간·바이너리·불리언·숫자·`None`을 SQL 리터럴로 만든다. 지원하지 않는 형식과 유한하지 않은 실수는 거부한다. | [`Expr.py`](../../../src/DataAccessObject/Implements/Sqlite/Expr.py) |
|
|
12
|
+
| 비교·문자열 조건 | 비교 필터는 생성 시 오른쪽 값을 리터럴로 인코딩하고, `Like`도 `__str__()`에서 리터럴을 만든다. `And`·`Or`는 자식 문자열을 연산자로 이어 붙인다. | [`Compare.py`](../../../src/DataAccessObject/Implements/Sqlite/Filters/Compare.py), [`String.py`](../../../src/DataAccessObject/Implements/Sqlite/Filters/String.py), [`Operator.py`](../../../src/DataAccessObject/Implements/Sqlite/Filters/Operator.py) |
|
|
13
|
+
| 값 포함 함수 | `IfNull`의 대체값은 함수 문자열에 SQL 리터럴로 포함된다. 다른 기본 집계 함수는 컬럼 표현식을 받는다. | [`Condition.py`](../../../src/DataAccessObject/Implements/Sqlite/Functions/Condition.py), [`Common.py`](../../../src/DataAccessObject/Implements/Sqlite/Functions/Common.py) |
|
|
14
|
+
| SELECT·GET | `Select.query`가 JOIN·WHERE·GROUP BY·HAVING·ORDER BY와 투영식을 조립하지만 `Select.args`는 비어 있다. `Get`은 `Select`의 실행·바인딩 동작을 상속한다. | [`Select.py`](../../../src/DataAccessObject/Implements/Sqlite/Executors/Select.py), [`Get.py`](../../../src/DataAccessObject/Implements/Sqlite/Executors/Get.py) |
|
|
15
|
+
| UPDATE | `Insert.args`가 SET 값을 전달하고 `Update.query`는 SET 플레이스홀더 뒤에 WHERE 조건을 문자열로 붙인다. WHERE 바인딩을 추가할 때 SET 값이 인자 앞부분을 차지해야 한다. | [`Insert.py`](../../../src/DataAccessObject/Implements/Sqlite/Executors/Insert.py), [`Update.py`](../../../src/DataAccessObject/Implements/Sqlite/Executors/Update.py) |
|
|
16
|
+
| DELETE | WHERE 조건을 문자열로 붙이며 인자는 비어 있다. | [`Delete.py`](../../../src/DataAccessObject/Implements/Sqlite/Executors/Delete.py) |
|
|
17
|
+
| 실행 전달 | 실행 객체를 처리할 때 `Cursor.run()`은 `executor.query`, `executor.args`를 SQLite cursor에 전달한다. | [`Cursor.py`](../../../src/DataAccessObject/Implements/Sqlite/Cursor.py) |
|
|
18
|
+
| DDL·뷰·인덱스 | 컬럼 기본값은 `CREATE TABLE` SQL에 직접 렌더링한다. 뷰는 바인딩 인자가 없는 실행 객체만 허용한다. 부분 인덱스 식은 원시 SQL 선언이다. | [`Create.py`](../../../src/DataAccessObject/Implements/Sqlite/Executors/Create.py), [`Mapping.py`](../../../src/DataAccessObject/Implements/Sqlite/Mapping.py), [`Index.py`](../../../src/DataAccessObject/Implements/Sqlite/Index.py) |
|
|
19
|
+
|
|
20
|
+
기존 쿼리 매뉴얼은 조건 값을 SQL 리터럴로 설명하고 `Select.args`가 빈 튜플이라고 명시한다. 따라서 바인딩 도입 시 한국어·영어 매뉴얼을 함께 갱신해야 한다. ([`Queries.md`](../../../docs/Implements/Database/Sqlite/Queries.md), [`Queries.en.md`](../../../docs/Implements/Database/Sqlite/Queries.en.md))
|
|
21
|
+
|
|
22
|
+
## 확정 요구사항
|
|
23
|
+
|
|
24
|
+
1. **일반 쿼리의 값 분리**
|
|
25
|
+
- 데이터 값은 실행 SQL에 리터럴로 삽입하지 않고 `?` 플레이스홀더와 실행 인자로 전달한다.
|
|
26
|
+
- 테이블·컬럼 이름, 연산자와 SQL 키워드 같은 SQL 구조는 값 인자로 취급하지 않는다. 기존 식별자 quoting 및 SQL 표현식 계약을 유지한다.
|
|
27
|
+
- 이미 바인딩을 사용하는 INSERT와 UPDATE의 SET 값은 기존처럼 동작한다.
|
|
28
|
+
|
|
29
|
+
2. **지원 표현식의 값 전달**
|
|
30
|
+
- 비교 필터, `Like`, `And`·`Or` 내부 조건의 값이 플레이스홀더와 인자로 변환된다.
|
|
31
|
+
- SELECT·GET의 WHERE·HAVING 조건, 투영·GROUP BY·ORDER BY의 값 포함 표현식, JOIN의 ON 조건에서 같은 정책을 사용한다.
|
|
32
|
+
- UPDATE의 WHERE 조건과 DELETE의 WHERE 조건도 바인딩한다.
|
|
33
|
+
- SELECT의 검증된 페이지 크기와 offset도 쿼리 구조와 분리해 인자로 전달한다.
|
|
34
|
+
- 조건·함수·JOIN 등 복합 표현식은 하위 표현식의 인자를 SQL 조각의 생성 순서대로 모은다.
|
|
35
|
+
- `IsNull`·`IsNotNull`처럼 값 인자를 포함하지 않는 표현식은 불필요한 인자를 만들지 않는다.
|
|
36
|
+
- `And`·`Or`가 SQL 괄호를 자동 추가하지 않는 현재 연산자 우선순위 동작은 이번 변경으로 바꾸지 않는다.
|
|
37
|
+
|
|
38
|
+
3. **인자 순서와 실행 일관성**
|
|
39
|
+
- 실행 객체의 `args`는 `query` 내 `?`의 왼쪽에서 오른쪽 순서와 일치한다.
|
|
40
|
+
- UPDATE에서는 SET 값이 WHERE 값보다 먼저 전달된다.
|
|
41
|
+
- SELECT의 projection, JOIN, WHERE, GROUP BY, HAVING, ORDER BY, LIMIT 및 OFFSET에서 인자가 생성되면 실제 SQL에 나타나는 절 순서와 일치시킨다.
|
|
42
|
+
- 같은 실행 객체에서 `query`와 `args`를 반복 조회해도 SQL 및 인자 결과가 변하지 않는다.
|
|
43
|
+
- 기존 `Cursor.run()`·`Connection.run()` 실행 방식과 각 Executor의 chaining·반환 형식은 유지한다.
|
|
44
|
+
|
|
45
|
+
4. **값 변환·검증 정책**
|
|
46
|
+
- 기존 조건 인코딩에서 허용한 `None`, 문자열, `datetime`, 바이너리, 불리언, 정수 및 유한 실수를 계속 처리한다.
|
|
47
|
+
- `datetime`은 현재와 같이 ISO 8601 문자열로 전달하고, 불리언은 기존 SQL 표현과 동등한 SQLite 값으로 전달한다.
|
|
48
|
+
- SQL 리터럴을 만들기 위한 문자열 quoting·바이너리 hex 표현에 의존하지 않고 SQLite 드라이버의 값 바인딩을 사용한다.
|
|
49
|
+
- 기존처럼 비유한 실수와 지원하지 않는 값 형식은 명시적으로 거부한다. SQLite 바인딩이 더 넓은 형식을 받아들이더라도 이 변경만으로 허용 범위를 넓히지 않는다.
|
|
50
|
+
- 명시적으로 NULL을 비교하는 API인 `IsNull`·`IsNotNull`은 유지한다.
|
|
51
|
+
|
|
52
|
+
5. **DDL 및 SQL 구조 예외**
|
|
53
|
+
- DDL의 `DEFAULT`처럼 실행 단계 바인딩을 적용할 수 없는 정의는 현재 리터럴 생성 경로와 결과를 유지한다.
|
|
54
|
+
- 바인딩 인자를 포함하는 Select를 Sqlite 뷰 정의에 허용하지 않는다. 뷰 정의와 기존 인덱스 SQL 선언의 처리 방식을 일반 실행 쿼리 바인딩과 혼합하지 않는다.
|
|
55
|
+
- 현재 구현에 없는 `CHECK` 제약조건 또는 서브쿼리 표현식 API를 새로 추가하지 않는다.
|
|
56
|
+
|
|
57
|
+
6. **공개 동작과 문서**
|
|
58
|
+
- 실행 객체의 공개 `.query`는 조건 값이 포함된 경우 리터럴 SQL 대신 플레이스홀더 SQL을 반환하고, `.args`는 해당 값을 반환한다.
|
|
59
|
+
- `.query` 문자열이나 `.args`에 직접 의존하는 사용자 코드에서 관찰 가능한 변경이므로 호환성 영향을 명시한다. `run()`을 사용하는 기존 호출 방식과 결과 형식은 유지한다.
|
|
60
|
+
- 한국어·영어 Sqlite 쿼리 문서에서 바인딩 동작, SQL·인자 확인 방법, DDL·뷰의 예외 및 raw SQL/식별자 구분을 실제 구현에 맞게 안내한다.
|
|
61
|
+
|
|
62
|
+
## 범위 제외
|
|
63
|
+
|
|
64
|
+
- PostgreSQL 구현체, 공통 Database 계약 및 다른 데이터 접근 구현체 변경
|
|
65
|
+
- 새 서브쿼리 문법, `CHECK` 제약조건 또는 새 조건·함수 기능 추가
|
|
66
|
+
- `And`·`Or`의 SQL 괄호·우선순위 의미 변경
|
|
67
|
+
- 기존 SQL의 임의 표현식·식별자 입력 규칙을 재설계하거나 모든 SQL 문자열 사용을 제거하는 작업
|
|
68
|
+
- 이 이슈와 무관한 리팩터링
|
|
69
|
+
|
|
70
|
+
## 완료 기준
|
|
71
|
+
|
|
72
|
+
- [x] 지원하는 각 표현식 경로에서 값은 플레이스홀더와 인자로 분리되고, 인자 개수·순서는 쿼리와 일치한다.
|
|
73
|
+
- [x] SELECT·GET의 WHERE·HAVING·투영·GROUP BY·ORDER BY 표현식·JOIN ON·LIMIT·OFFSET, UPDATE SET·WHERE, DELETE WHERE가 실제 SQLite 연결에서 올바른 결과를 낸다.
|
|
74
|
+
- [x] 비교 연산자, `Like`, 중첩 `And`·`Or`, 값이 포함된 함수 및 인자가 없는 조건의 실행을 검증한다.
|
|
75
|
+
- [x] UPDATE에서 SET 인자와 WHERE 인자의 순서를 검증하고, 반복된 `.query`·`.args` 조회의 결과가 안정적임을 검증한다.
|
|
76
|
+
- [x] 문자열의 작은따옴표·유니코드·SQL 조각처럼 보이는 입력, `None`, 불리언, 정수, 유한·비유한 실수, `datetime`, 바이너리 및 지원하지 않는 형식을 검증한다.
|
|
77
|
+
- [x] INSERT·UPDATE의 기존 바인딩과 반환 형태, DDL 기본값, 인덱스 정의 및 뷰의 바인딩 거부 동작을 회귀 검증한다.
|
|
78
|
+
- [x] 관련 한국어·영어 문서가 실제 동작과 일치하고 `.query`·`.args`의 호환성 영향을 알린다.
|
|
79
|
+
- [x] Sqlite 테스트가 통과하고 PostgreSQL 구현체 및 공통 계약에는 의도하지 않은 변경이 없다.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# 작업·검증 결과
|
|
2
|
+
|
|
3
|
+
## 결과
|
|
4
|
+
|
|
5
|
+
Sqlite 회귀 테스트, Database 프로토콜 테스트, PostgreSQL 선택 테스트를 실행했다. 수정 소스를 임시 import 경로로 제공하여 현재 작업 트리의 코드가 테스트에서 사용되도록 했으며, 모두 통과했다. 관련 작업 기록: [구현 시작·상태 확인](./tasks/1793211561655.md), [회귀 검증·문서 확인](./tasks/1793212001910.md), [최종 회귀 검증](./tasks/1793212156794.md), [SQLite 테스트 파일 이동](./tasks/1793212350519.md), [중첩 표현식 회귀 검증](./tasks/1793213635035.md).
|
|
6
|
+
|
|
7
|
+
## 검증
|
|
8
|
+
|
|
9
|
+
| 검증 | 결과 |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| `python tests\sqlite\test_sqlite.py` | 이동 후 통과, 25개 |
|
|
12
|
+
| `python -m unittest discover -s tests -p test_sqlite.py` | 하위 디렉터리 discovery 통과, 25개 |
|
|
13
|
+
| `python tests\test_dao_protocols.py` | 통과, 6개 |
|
|
14
|
+
| `python tests\test_postgresql_optional.py` | 통과, 2개 |
|
|
15
|
+
| 변경 Markdown 상대 링크·공백·줄바꿈 | 통과 |
|
|
16
|
+
| `git diff --check` | 통과 |
|
|
17
|
+
| 변경 Python 파일 진단 | 오류 없음 |
|
|
18
|
+
|
|
19
|
+
SQLite 테스트는 현재 `tests/sqlite/test_sqlite.py`에 있다. 해당 디렉터리를 unittest discovery에 포함하기 위해 package marker를 추가했다. PostgreSQL 통합 테스트는 별도 구현체이므로 이 SQLite 변경과 테스트 파일 이동의 검증 대상이 아니다.
|
|
20
|
+
|
|
21
|
+
중첩 `IsNull`·`IsNotNull`, `Like` 피연산자와 `Count`·`Sum`·`Average` 집계식의 바인딩 전달을 보완했다. 수정 뒤 SQLite 26개 테스트가 통과했으며 세 중첩 표현식 오류를 회귀 테스트로 확인했다.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Sqlite 쿼리 값 바인딩
|
|
2
|
+
|
|
3
|
+
Sqlite 조건과 값 포함 표현식이 SQL 리터럴 대신 `?` 플레이스홀더를 만들고 바인딩 인자를 전달하도록 변경했다. 비교 필터·LIKE·논리 조합·JOIN·`IfNull`·별칭·정렬 표현식에서 인자를 SQL 조각 순서로 수집한다.
|
|
4
|
+
|
|
5
|
+
`Select`·`Get`은 투영·JOIN·WHERE·GROUP BY·HAVING·ORDER BY·LIMIT·OFFSET 순서로 인자를 반환한다. UPDATE는 INSERT에서 상속한 SET 인자 뒤에 WHERE 인자를 추가하며, DELETE는 WHERE 인자를 제공한다. 기존 실행 경로가 `query`와 `args`를 커서에 전달하므로 커서 인터페이스나 반환 계약은 바꾸지 않았다.
|
|
6
|
+
|
|
7
|
+
DDL 기본값은 별도 리터럴 경로로 유지했다. 뷰에서 바인딩 인자를 거부하는 기존 검증은 새 조건 인자에도 적용된다. 매뉴얼은 한국어·영어 모두 새 동작과 직접 `.query`를 사용하는 코드의 호환성 영향을 안내한다.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# 바인딩 값 검증 마무리
|
|
2
|
+
|
|
3
|
+
바인딩 값의 형식·유한 실수 검증을 SQL 리터럴 렌더링과 분리했다. 조건 표현식은 원래 허용된 값 형식을 검증하면서 `datetime`을 ISO 8601 문자열로, 불리언을 기존 SQL 결과와 같은 정수 값으로 전달하고, 문자열·바이너리·숫자·NULL은 SQLite 바인딩 값으로 유지한다. DDL의 기존 리터럴 렌더링 경로는 그대로 둔다.
|
|
4
|
+
|
|
5
|
+
최종 구현 후 SQLite·프로토콜·PostgreSQL 선택 테스트를 다시 실행해 통과를 확인했다. 검증 기록은 [최종 회귀 검증](../tasks/1793212156794.md)에 있다.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# 중첩 표현식 인자 전달 보완
|
|
2
|
+
|
|
3
|
+
중첩 표현식을 SQL로 렌더링할 때 자식 표현식의 플레이스홀더만 출력하고 인자를 누락하던 경로를 수정했다.
|
|
4
|
+
|
|
5
|
+
- `IsNull`·`IsNotNull`은 피연산자 인자를 전달한다.
|
|
6
|
+
- `Like`는 왼쪽 표현식 인자를 패턴 인자보다 먼저 전달한다.
|
|
7
|
+
- `Count`·`Sum`·`Average`는 집계 대상 표현식의 인자를 전달한다.
|
|
8
|
+
- 각 표현식의 타입 선언을 `Type`, `Function`, `Expr` 중첩을 허용하도록 확장했다.
|
|
9
|
+
|
|
10
|
+
Sqlite 통합 테스트에 각 경우의 SQL placeholder 수·인자·실제 실행 결과를 추가했다. 자세한 결과는 [중첩 표현식 회귀 검증](../tasks/1793213635035.md)을 참고한다.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# 구현 시작 상태 확인
|
|
2
|
+
|
|
3
|
+
작업 트리가 깨끗하고 대상 저장소가 `DefPixel`, 현재 브랜치가 이 이슈 작업 브랜치 `fix/4`임을 확인했다. 이슈 README·요구사항·계획과 Sqlite 구현, 테스트 및 한영 매뉴얼 지침을 다시 확인하고 구현을 시작했다.
|
|
4
|
+
|
|
5
|
+
검토 중 일반 SELECT 값 전달의 일관성을 위해 검증된 `limit()`의 size와 offset도 SQL 인자에 포함하도록 요구사항과 계획을 구체화했다. 기존에는 음이 아닌 정수 검증 후 SQL 문자열에 직접 삽입된다.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# 회귀 검증·문서 확인
|
|
2
|
+
|
|
3
|
+
수정한 소스를 임시 import 경로로 준비하고 저장소 루트에서 아래 테스트를 실행했다.
|
|
4
|
+
|
|
5
|
+
- `python tests\test_sqlite.py`: 25개 통과. 조건과 함수 바인딩, 중첩 조건, JOIN, HAVING, 페이지 인자, SET·WHERE 순서, 값 형식, CRUD·반환 형식, DDL 및 뷰 계약을 검증했다.
|
|
6
|
+
- `python tests\test_dao_protocols.py`: 6개 통과.
|
|
7
|
+
- `python tests\test_postgresql_optional.py`: 2개 통과.
|
|
8
|
+
|
|
9
|
+
한국어·영어 Sqlite 쿼리 매뉴얼을 갱신하고 상대 링크, 끝 줄바꿈, 후행 공백 및 `git diff --check`를 확인했다. 변경된 Python 파일에는 진단 오류가 없었다. 전체 테스트 스위트와 PostgreSQL 서버 통합 테스트는 실행하지 않았다.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# 최종 회귀 검증
|
|
2
|
+
|
|
3
|
+
최종 소스 변경 후 수정 소스를 임시 import 경로로 준비하여 테스트를 다시 실행했다.
|
|
4
|
+
|
|
5
|
+
- `python tests\test_sqlite.py`: 25개 통과
|
|
6
|
+
- `python tests\test_dao_protocols.py`: 6개 통과
|
|
7
|
+
- `python tests\test_postgresql_optional.py`: 2개 통과
|
|
8
|
+
|
|
9
|
+
이전 검증 이후 바인딩 값의 유효성 검사를 SQL 리터럴 렌더링에서 분리했다. 최종 테스트에서 값 형식 변환·거부, SQLite 결과, 기존 Database 프로토콜 동작을 확인했다. 전체 테스트 스위트와 PostgreSQL 서버 통합 테스트 전체는 실행하지 않았다.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# SQLite 테스트 파일 이동
|
|
2
|
+
|
|
3
|
+
SQLite 테스트 파일을 `tests/test_sqlite.py`에서 `tests/sqlite/test_sqlite.py`로 이동했다. 하위 테스트 디렉터리도 unittest discovery가 탐색하도록 `tests/sqlite/__init__.py`를 추가했다.
|
|
4
|
+
|
|
5
|
+
이동 후 `python tests\sqlite\test_sqlite.py`와 `python -m unittest discover -s tests -p test_sqlite.py`를 실행했다. 두 방식 모두 25개 테스트가 통과했으며, 루트 discovery가 새 하위 디렉터리의 테스트를 찾는 것을 확인했다.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# 중첩 표현식 회귀 검증
|
|
2
|
+
|
|
3
|
+
PR 리뷰에서 발견된 세 조합을 수정 전 재현한 뒤, 인자 전달과 실제 실행 결과를 확인하는 SQLite 테스트를 추가했다.
|
|
4
|
+
|
|
5
|
+
- `IsNull(IfNull(...))`·`IsNotNull(IfNull(...))`: 자식 값 인자 전달 확인
|
|
6
|
+
- `Like(IfNull(...), pattern)`: 왼쪽 표현식 인자 뒤에 패턴 인자가 전달되는 순서 확인
|
|
7
|
+
- `Count`·`Sum`·`Average(IfNull(...))`: 집계식 자식의 인자 전달 확인
|
|
8
|
+
|
|
9
|
+
수정 후 `python -m unittest discover -s tests -p test_sqlite.py`를 실행해 26개 테스트가 통과했다. 수정된 Python 파일 진단에도 오류가 없었다.
|
{defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Executors/Delete.py
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
|
|
3
3
|
from DefPixel.DataAccessObject.Properties.Database import Executor
|
|
4
|
+
from ..Expr import Expr
|
|
4
5
|
from ..Mapping import (
|
|
5
6
|
identifier,
|
|
6
7
|
inspect_model,
|
|
@@ -32,4 +33,8 @@ class Delete(Executor):
|
|
|
32
33
|
|
|
33
34
|
@property
|
|
34
35
|
def args(self):
|
|
35
|
-
return (
|
|
36
|
+
return tuple(
|
|
37
|
+
value
|
|
38
|
+
for condition in self.conds
|
|
39
|
+
for value in Expr.parameters_for(condition)
|
|
40
|
+
)
|
{defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Executors/Select.py
RENAMED
|
@@ -9,6 +9,7 @@ from ..Mapping import (
|
|
|
9
9
|
identifier,
|
|
10
10
|
inspect_model,
|
|
11
11
|
)
|
|
12
|
+
from ..Expr import Expr
|
|
12
13
|
|
|
13
14
|
__all__ = (
|
|
14
15
|
'Select',
|
|
@@ -87,12 +88,29 @@ class Select(Executor, Fetch):
|
|
|
87
88
|
if values:
|
|
88
89
|
sql += ' {} {}'.format(keyword, separator.join(str(value) for value in values))
|
|
89
90
|
if self.size is not None:
|
|
90
|
-
sql += ' LIMIT
|
|
91
|
+
sql += ' LIMIT ? OFFSET ?'
|
|
91
92
|
return sql
|
|
92
93
|
|
|
93
94
|
@property
|
|
94
95
|
def args(self):
|
|
95
|
-
|
|
96
|
+
columns = self.vals or tuple(self.mapping.columns.values())
|
|
97
|
+
values = (
|
|
98
|
+
columns,
|
|
99
|
+
self.joins,
|
|
100
|
+
self.conds,
|
|
101
|
+
self.grps,
|
|
102
|
+
self.havs,
|
|
103
|
+
self.ords,
|
|
104
|
+
)
|
|
105
|
+
args = tuple(
|
|
106
|
+
value
|
|
107
|
+
for group in values
|
|
108
|
+
for expression in group
|
|
109
|
+
for value in Expr.parameters_for(expression)
|
|
110
|
+
)
|
|
111
|
+
if self.size is not None:
|
|
112
|
+
args += (self.size, self.offset)
|
|
113
|
+
return args
|
|
96
114
|
|
|
97
115
|
def fetch(
|
|
98
116
|
self,
|
{defpixel-0.1.2 → defpixel-0.1.3}/src/DataAccessObject/Implements/Sqlite/Executors/Update.py
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
|
|
3
3
|
from .Insert import Insert
|
|
4
|
+
from ..Expr import Expr
|
|
4
5
|
from ..Mapping import identifier
|
|
5
6
|
|
|
6
7
|
__all__ = (
|
|
@@ -32,3 +33,12 @@ class Update(Insert):
|
|
|
32
33
|
', '.join('{}=?'.format(identifier(key)) for key in self.kwargs),
|
|
33
34
|
' WHERE ' + ' AND '.join(str(cond) for cond in self.conds) if self.conds else '',
|
|
34
35
|
)
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def args(self):
|
|
39
|
+
where = tuple(
|
|
40
|
+
value
|
|
41
|
+
for condition in self.conds
|
|
42
|
+
for value in Expr.parameters_for(condition)
|
|
43
|
+
)
|
|
44
|
+
return super().args + where
|
|
@@ -8,6 +8,9 @@ from abc import (
|
|
|
8
8
|
from datetime import datetime
|
|
9
9
|
from math import isfinite
|
|
10
10
|
|
|
11
|
+
from .Function import Function
|
|
12
|
+
from .Type import Type
|
|
13
|
+
|
|
11
14
|
__all__ = (
|
|
12
15
|
'Expr'
|
|
13
16
|
)
|
|
@@ -19,6 +22,38 @@ class Expr(ABC, metaclass=ABCMeta):
|
|
|
19
22
|
def encode(self, o):
|
|
20
23
|
return self.literal(o)
|
|
21
24
|
|
|
25
|
+
@property
|
|
26
|
+
def parameters(self):
|
|
27
|
+
return ()
|
|
28
|
+
|
|
29
|
+
@staticmethod
|
|
30
|
+
def bind(value):
|
|
31
|
+
if value is None or isinstance(value, (str, bytes)):
|
|
32
|
+
return value
|
|
33
|
+
if isinstance(value, datetime):
|
|
34
|
+
return value.isoformat()
|
|
35
|
+
if isinstance(value, bool):
|
|
36
|
+
return int(value)
|
|
37
|
+
if isinstance(value, (int, float)):
|
|
38
|
+
if isinstance(value, float) and not isfinite(value):
|
|
39
|
+
raise ValueError('SQL values require finite numbers')
|
|
40
|
+
return value
|
|
41
|
+
raise TypeError('Unsupported SQL value type: {}'.format(type(value).__name__))
|
|
42
|
+
|
|
43
|
+
@staticmethod
|
|
44
|
+
def expression(value):
|
|
45
|
+
if isinstance(value, (Expr, Function, Type)):
|
|
46
|
+
return str(value)
|
|
47
|
+
return '?'
|
|
48
|
+
|
|
49
|
+
@staticmethod
|
|
50
|
+
def parameters_for(value, bind=False):
|
|
51
|
+
if isinstance(value, (Expr, Function)):
|
|
52
|
+
return value.parameters
|
|
53
|
+
if isinstance(value, Type):
|
|
54
|
+
return ()
|
|
55
|
+
return (Expr.bind(value),) if bind else ()
|
|
56
|
+
|
|
22
57
|
@staticmethod
|
|
23
58
|
def literal(value):
|
|
24
59
|
if value is None:
|