Hi, when in development there are often times when I would like to log all db queries to the console. This is of course doable with the native acebase storage using the log option, but that feature isnt available when using sqlite as a storage backend.
I was wondering if it would be possible to add logging when using sqlite as a storage backend with acebase. It seems that the sqlite3 library that acebase is using supports logging the db queries via the Database#on('trace', [callback]) api mentioned here: https://github.com/mapbox/node-sqlite3/wiki/Debugging#databaseontrace-callback
I also found this thread for mysql, perhaps a logging option could be enabled for both?
Cheers.
Hi, when in development there are often times when I would like to log all db queries to the console. This is of course doable with the native acebase storage using the log option, but that feature isnt available when using sqlite as a storage backend.
I was wondering if it would be possible to add logging when using sqlite as a storage backend with acebase. It seems that the sqlite3 library that acebase is using supports logging the db queries via the
Database#on('trace', [callback])api mentioned here: https://github.com/mapbox/node-sqlite3/wiki/Debugging#databaseontrace-callbackI also found this thread for mysql, perhaps a logging option could be enabled for both?
Cheers.