Skip to content

Access MySQLQueryMetadata from SQLDatabase interface #328

@florianreinhart

Description

@florianreinhart

I am using MySQLKit and want to access the MySQLQueryMetadata to get lastInsertID and affectedRows when running a query. I know that I can do this using the MySQLDatabase.query(...) method with the onMetadata callback. This method requires a raw SQL string.

I want to use the SQLDatabase interface to build my queries using select(), insert(), etc. and then use all(), run(), first() to execute the queries. It seems to me that there is no way to access the metadata when using the SQLDatabase interface.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions