nette/database
Nette Database is a lightweight PHP database layer with a safe, fluent SQL builder, easy connection and result handling, and handy helpers for queries and transactions. Designed to work smoothly with the Nette framework while usable standalone.
DeadlockException, ConnectionLostException) to implement automatic retry logic for transient failures, improving system reliability.getExplorer() to enable direct access to the underlying Explorer for advanced use cases (e.g., custom query optimization, debugging).ConnectionPanel (Tracy integration) for real-time SQL monitoring in development, reducing debugging time.CheckConstraintViolationException to validate business rules at the database layer, reducing application-level validation boilerplate.Explorer::transaction()) for complex workflows requiring atomicity (e.g., financial systems, inventory management).fetchList()/fetchPairs() for efficient data retrieval without writing raw SQL.Selection::refreshData() and GroupedSelection to manage cached or materialized views dynamically.Adopt if:
Look elsewhere if:
"This package lets us build database resilience and developer velocity without sacrificing control. By adopting nette/database, we can:
DeadlockException) let us automate retries for transient failures, improving uptime."nette/database gives us:
$selection->where('active = ?', true)) with advanced features like subqueries, joins, and aggregations—without writing raw SQL.ConnectionPanel in Tracy shows query execution times, parameters, and stack traces—no more guessing why a query is slow."Key architectural benefits:
How can I help you explore Laravel packages today?