CodeIgniter 4 Query Helper $db->getLastQuery() method for SQL prototyping

Joshua Otwell
Level Up Coding
Published in
3 min readDec 19, 2021

--

We are always debugging or prototyping something in our code as we develop programs and applications.

Being an SQL-first type of developer, I enjoy writing complex SQL queries and thus, porting them over to whatever ORM (or ORM-like feature such as the CodeIgniter 4 Query Builder class) I am working with.

--

--

SQL | PHP | Photography. Sign-up for my free developer newsletter, OpenLampTech, here: openlamptech.substack.com