Driver
To interact with the database directly for executing raw SQL queries, you can inject the Swift\Dbal\Dbal
service. This is a direct implementation of the Cycle\Database\DatabaseInterface
.
You can select data from the database by using the query()
method.
You can also use named parameters.
To execute and non-select queries, you can use the execute()
method.