Jaguar-dart / jaguar_orm

Source-generated ORM with relations (one-to-one, one-to-many, many-to-many), preloading, cascading, polymorphic relations, etc
https://jaguar-dart.github.io
BSD 3-Clause "New" or "Revised" License
218 stars 52 forks source link

Feature request: debug option for adapter #144

Closed pafik13 closed 5 years ago

pafik13 commented 5 years ago

It would be nice to be able to track all queries.

I think it should be something like this:

final PgAdapter _adapter =
    new PgAdapter('example', username: 'postgres', password: 'dart_jaguar');
await _adapter.connect(debug: true);   // or (printAllQueries: true)
tejainece commented 5 years ago

Great idea. I will implement this.

tejainece commented 5 years ago

Implemented by https://github.com/Jaguar-dart/jaguar_orm/commit/5e209222cfb95018405a58e06451c3dd5e75d1fd