You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Build SQL for MySQL, PostgreSQL, SQLServer, SQLite, CQL, or ClickHouse](#build-sql-for-mysql-postgresql-sqlserve-sqlite-or-clickhouse)
12
+
-[Build SQL for different systems](#build-sql-for-different-systems)
13
13
-[Using `Struct` as a light weight ORM](#using-struct-as-a-light-weight-orm)
14
14
-[Nested SQL](#nested-sql)
15
15
-[Use `sql.Named` in a builder](#use-sqlnamed-in-a-builder)
@@ -110,9 +110,11 @@ Following are some utility methods to deal with special cases.
110
110
111
111
To learn how to use builders, check out [examples on GoDoc](https://pkg.go.dev/github.com/huandu/go-sqlbuilder#pkg-examples).
112
112
113
-
### Build SQL for MySQL, PostgreSQL, SQLServer, SQLite, CQL, or ClickHouse
113
+
### Build SQL for different systems
114
114
115
-
Parameter markers are different in MySQL, PostgreSQL, SQLServer and SQLite. This package provides some methods to set the type of markers (we call it "flavor") in all builders.
115
+
SQL syntax and parameter marks vary in different systems. In this package, we introduce a concept called "flavor" to smooth out these difference.
116
+
117
+
Right now, MySQL, PostgreSQL, SQLServer, SQLite, CQL and ClickHouse are defined in flavor list. Feel free to open issue or send pull request if anyone asks for a new flavor.
116
118
117
119
By default, all builders uses `DefaultFlavor` to build SQL. The default value is `MySQL`.
0 commit comments