Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Print SQL from Find statement #190

Open
jamespet77 opened this issue Jun 5, 2020 · 1 comment
Open

Print SQL from Find statement #190

jamespet77 opened this issue Jun 5, 2020 · 1 comment

Comments

@jamespet77
Copy link

Is it possible to print the generated SQL from a Find statement? I am trying to recreate some rather complicated queries and would like to know if it is correct?

@JamesMcIntosh
Copy link

Something like this should be able to do it, you'll just have to choose the correct composer for your database, in this case SQFlite.

import 'package:jaguar_query/jaguar_query.dart';
import 'package:jaguar_query_sqflite/composer.dart';

class SQFlite {
  static void print(Find query) => print(composeFind(query));
}

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants