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.
I am using MySQLKit and want to access the
MySQLQueryMetadatato getlastInsertIDandaffectedRowswhen running a query. I know that I can do this using theMySQLDatabase.query(...)method with theonMetadatacallback. This method requires a raw SQL string.I want to use the
SQLDatabaseinterface to build my queries usingselect(),insert(), etc. and then useall(),run(),first()to execute the queries. It seems to me that there is no way to access the metadata when using theSQLDatabaseinterface.