@@ -3,7 +3,6 @@ Write SQL queries in a simple and composable way.
3
3
The main goal is to find the best balance between write idiomatic SQL queries and manage cenarios
4
4
of complex query composition mixed with conditional clauses.
5
5
6
- The [ full documentation] ( https://docs.rs/sql_query_builder/ )
7
6
8
7
## Quick Start
9
8
@@ -32,14 +31,27 @@ Output
32
31
SELECT id, login FROM users WHERE login = $1 AND is_admin = true
33
32
```
34
33
34
+
35
+ ## Feature Flags
36
+
37
+ SQL Query Builder comes with the following optional features:
38
+ - ` postgresql ` enable Postgres syntax
39
+
40
+ You can enable features like
41
+
42
+ ``` toml
43
+ # Cargo.toml
44
+
45
+ sql_query_builder = { version = " 0.x.x" , features = [" postgresql" ] }
46
+ ```
47
+
48
+
49
+ ## How it's works
35
50
In simple terms this library will not try to understand what you are writing inside the arguments, this is good
36
51
because it's removes a lot complexity and verbosity that other libraries needs to generate a SQL query,
37
52
in contrast debugging tends to be more difficult and silly error can araise.
38
53
The lib has ` .debug() ` method with a nice output to minimize the effort to debug a complex query.
39
54
40
-
41
- ## How it's works
42
-
43
55
Consecutive calls to the same clause will accumulates values respecting the order of the calls,
44
56
the two select produce the same SQL query
45
57
@@ -200,15 +212,4 @@ let select = SelectBuilder::new()
200
212
```
201
213
202
214
203
- ## Feature Flags
204
-
205
- SQL Query Builder comes with the following optional features:
206
- - ` postgresql ` enable Postgres syntax
207
-
208
- You can enable features like
209
-
210
- ``` toml
211
- # Cargo.toml
212
-
213
- sql_query_builder = { version = " 0.x.x" , features = [" postgresql" ] }
214
- ```
215
+ See the [ documentation] ( https://docs.rs/sql_query_builder/ ) for more builders like ` InsertBuilder ` , ` UpdateBuilder ` and ` DeleteBuilder `
0 commit comments