-
-
Notifications
You must be signed in to change notification settings - Fork 507
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
Getting Raw SQL from the package, without passing it to the database engine #708
Comments
Yes, you can. package contains compilers for every database it supports, under you can use Example with postgres;
|
Fantastic! you see, I feel the queries so much more readable once written using SqlKata chaining methods, and then only converted to raw SQL to be fed into an ORM. |
It is worth noting that the |
You're right. Is there any other way to compile query? |
If you are not the SqlKata.Execution package, you should use the See https://github.com/sqlkata/querybuilder/blob/master/SqlKata.Execution/QueryFactory.cs#L77 as an example |
I was lookin' for a sql query builder. but looks like, SQL Kata doesn't directly deliver a SQL text output.
Our team is currently using another ORM, so I cannot switch to a new one right now.
I was wondering if getting a raw SQL query out of SqlKata is possible?
e.g. new Query("Products").Select("*").ToString() //return 'SELECT * FROM Products'
The text was updated successfully, but these errors were encountered: