singlestore-labs / singlestoredb-laravel-driver

The official SingleStore Laravel driver.
https://github.com/singlestore-labs/singlestore-laravel-driver
Apache License 2.0
223 stars 22 forks source link

Add connection to grammer #62

Closed AmirHossein closed 1 year ago

AmirHossein commented 1 year ago

Illuminate\Database\Grammer::escape functionality moved to Illuminate\Database\Connection::escape (commit) and it needs connection instance to work. It used in toRawSql, dumpRawSql() and ddRawSql() new methods (#47507)

AdalbertMemSQL commented 1 year ago

@AmirHossein Thanks for raising this issue. This change doesn't work with older versions of Laravel. Can you fix it?

AmirHossein commented 1 year ago

@AdalbertMemSQL Changes on Connection including rawSql methods were introduced on Laravel 10. I updated PR to avoid error on other versions.