We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b1fe41 commit 60fbac1Copy full SHA for 60fbac1
Cargo.toml
@@ -4,7 +4,7 @@ description = "Write SQL queries in a simple and composable way"
4
documentation = "https://docs.rs/sql_query_builder"
5
repository = "https://github.com/belchior/sql_query_builder"
6
authors = ["Belchior Oliveira <[email protected]>"]
7
-version = "0.7.4"
+version = "0.8.4"
8
edition = "2021"
9
license = "MIT"
10
keywords = ["sql", "query", "postgres"]
src/fmt.rs
@@ -26,9 +26,10 @@ impl<'a> Formatter<'a> {
26
}
27
28
pub fn colorize(sql: String) -> String {
29
- let keywords: [(fn(&str) -> String, &str, &str); 38] = [
+ let keywords: [(fn(&str) -> String, &str, &str); 41] = [
30
+ (blue, "CROSS ", "cross "),
31
+ (blue, "DELETE ", "delete "),
32
(blue, "EXCEPT ", "except "),
- (blue, "CROSS ", "cros "),
33
(blue, "FROM ", "from "),
34
(blue, "FULL ", "full "),
35
(blue, "GROUP ", "group "),
@@ -45,7 +46,9 @@ pub fn colorize(sql: String) -> String {
45
46
(blue, "OVERRIDING ", "overriding "),
47
(blue, "RIGHT ", "right "),
48
(blue, "SELECT ", "select "),
49
+ (blue, "SET ", "set "),
50
(blue, "UNION ", "union "),
51
+ (blue, "UPDATE ", "update "),
52
(blue, "VALUES ", "values "),
53
(blue, "WHERE ", "where "),
54
(blue, "WITH ", "with "),
0 commit comments