Skip to content

Conversation

@Manozco
Copy link
Contributor

@Manozco Manozco commented Apr 16, 2025

Hi there 👋

This PR introduces a full example project called books_cli to demonstrate how to use pytest-sqlguard in a real-world setting.

What’s included:

  • 🖥️ A simple CLI built with Typer to manage books and authors
  • 🌐 FastAPI web app with Swagger docs for easy testing
  • 🗃️ SQLite + SQLAlchemy used for the database layer
  • 🧪 Test suite with SQL snapshot testing to catch unexpected query changes
  • 📖 A complete README with setup instructions and usage tips

Let me know if something can be improved or changed.

Thanks!

Manozco added 2 commits April 15, 2025 17:01
Added a full example app called books_cli to show off how to use pytest-sqlguard.

- Includes a simple CLI built with Typer to manage books & authors
- FastAPI app with endpoints and Swagger docs
- SQLite + SQLAlchemy for the database layer
- Tests with query snapshots to show how sqlguard catches SQL changes
- README with setup steps, usage tips, and links
The example is a project on its own, the environment we use for
testing the library is not fit for it.
We disable it for now.
@manu-paylead manu-paylead merged commit b22b01b into PayLead:main Apr 18, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants