-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Executing raw SQL directly through the connection #428
Comments
Technically you always can get access to the adapter and execute whatever is supported by the driver - |
I was able to get what I needed to work by using the command literal. The load from file commands do not work with prepared statements, so that was a challenge to figure out. Would it be worth adding a method that allows easier access or documenting how to execute SQL statements directly? Something that goes right on the model and passes down to the |
What do you mean under "execute SQL statement directly"? To enforce unprepared statement instead of prepared for custom SQL query? |
Yes that's exactly what I mean |
I will experiment with this |
I'm trying to figure out how I can run a
LOAD DATA LOCAL INFILE
command for MySQL directly over the default adapter connection.I've tried a few that I found, but I get an error about "This command is not supported in the prepared statement protocol yet", so I'm guessing the methods I found are not executing the raw SQL string I'm providing.
Is there a way I can send SQL directly to the db over the connection?
The text was updated successfully, but these errors were encountered: