Advertisement
Advertisement

More Related Content

Advertisement

Neevo - database abstraction layer for PHP

  1. Neevo – database abstraction layer for PHP @smasty
  2. Database problems in PHP • Inconsistence between DB systems • No abstraction between PHP and SQL • Hand-written SQL queries • No automatic security solution
  3. Solution: Neevo Database abstraction layer for PHP platform neevo.smasty.net github.com/smasty/Neevo
  4. Main advantages • Easy to use • Support for multiple DB • Lots of features systems • Automated defence • Conditional queries against SQL Injection • Automated tests attacks • Diagnostic tools for • Sophisticated developers architecture • Easily scalable
  5. Architecture
  6. Basic usage: SQL queries
  7. SQL
  8. PHP
  9. Neevo
  10. Connecting to the database
  11. PHP – PostgreSQL & MySQL Login credentials Connecting to the database
  12. Neevo – reusable code Login credentials Connection in one line of code!
  13. Conditional SQL queries
  14. PHP Conditional part of the query
  15. Neevo Conditional part of the query
  16. Source code coverage 191 unit tests 11 integration tests
  17. Scalability – custom DB driver
  18. Diagnostic tools • Observer pattern: IObserver, IObservable and their implementations • Info about queries: – Result::explain() – EXPLAIN query – Statement::getTime() – duration of query execution
  19. Built-in support for Nette Framework
  20. Configuration in config.neon
  21. Usage in Presenter
  22. DebugBar panel – Performed queries
  23. Bluescreen panel – Error in query
  24. The End.
Advertisement