Can I have Eloquent ORM run a query without using prepared statements? Or do I have to use whereRaw()
?
I need to use a raw query because I'm trying to interact with InfiniDB, which lacks support for prepared statements from PHP. At any rate, all queries will be using internally generated data, not user input so it should not be a security issue.
For anything other than
SELECT
you can useunprepared()
For an unprepared
SELECT
you can use plain PDOquery()
by getting access to active PDO connection throughgetPdo()