Skip to content

Conversation

@bjthres1
Copy link
Collaborator

No description provided.

This update introduces SQLAlchemy for improved
database handling, including connection pooling
and enhanced query execution. The Database class
now utilizes SQLAlchemy's Engine for managing
connections, allowing for better concurrency and
resource management.

BREAKING CHANGE: The connection handling has been
refactored to use SQLAlchemy, which may affect
existing database interaction methods.
- Improved database connection management using
  SQLAlchemy's session system.
- Improved query sanitization/safety using
  SQLAlchemy.
- Updated the CLI and test files to utilize the
  Database class instead of MemDB.
Added comprehensive validation for SQL identifiers
and SQLite column types, ensuring safety against
reserved words and format issues. Introduced
helper methods for building column definitions
and mapping SQLite types to SQLAlchemy types,
improving the robustness of table creation
functionality.
@bjthres1 bjthres1 added the enhancement New feature or request label Sep 10, 2025
@bjthres1 bjthres1 linked an issue Sep 10, 2025 that may be closed by this pull request
@SyntaxAerror SyntaxAerror added the wontfix This will not be worked on label Sep 10, 2025
@bjthres1 bjthres1 linked an issue Sep 10, 2025 that may be closed by this pull request
@SyntaxAerror SyntaxAerror self-assigned this Sep 10, 2025
@bjthres1 bjthres1 linked an issue Sep 10, 2025 that may be closed by this pull request
Copy link
Owner

@SyntaxAerror SyntaxAerror left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This branch is being abandoned in favor of rewrite-with-sqlalchemy which was merged in #9 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Database Interface Architecture Database Connection Pool/Registry SQL Injection Protection

2 participants