Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

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

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

Already on GitHub? Sign in to your account

how to get real sql before exec #145

Closed
baoyachi opened this issue Sep 10, 2021 · 7 comments
Closed

how to get real sql before exec #145

baoyachi opened this issue Sep 10, 2021 · 7 comments

Comments

@baoyachi
Copy link
Contributor

baoyachi commented Sep 10, 2021

Like 'diesel',the crate support method debug sql with method:debug_query before exec .

Does sea-orm support? It's very useful function with debug.

@tyt2y3
Copy link
Member

tyt2y3 commented Sep 10, 2021

If you want to globally print every SQL statement, we have this feature but we haven't have written docs yet.

There are two ways

  1. use the 'debug-print' feature
  2. use the 'env-logger' crate

See #114

@billy1624
Copy link
Member

@baoyachi
Copy link
Contributor Author

baoyachi commented Sep 10, 2021

Hi @baoyachi, welcome!

Does this help? https://www.sea-ql.org/SeaORM/docs/basic-crud/raw-sql#get-raw-sql-query

Yeah,but I don't what cake means in sea-orm.

@billy1624
Copy link
Member

@baoyachi
Copy link
Contributor Author

Some suggestion: the doc may be reference some examples link be better.
The code may take time to read, lack context references, or be a better example to run

@tyt2y3
Copy link
Member

tyt2y3 commented Sep 13, 2021

So... you question got answered?

@baoyachi
Copy link
Contributor Author

Done

@SeaQL SeaQL locked and limited conversation to collaborators Sep 14, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants