Skip to content

Commit 92fd859

Browse files
committed
update doc and tests for oracle flavor
1 parent 334a2a2 commit 92fd859

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ There are also some methods to combine conditions.
168168

169169
SQL syntax and parameter marks vary in different systems. In this package, we introduce a concept called "flavor" to smooth out these difference.
170170

171-
Right now, `MySQL`, `PostgreSQL`, `SQLServer`, `SQLite`, `CQL`, `ClickHouse` and `Presto` are defined in flavor list. Feel free to open issue or send pull request if anyone asks for a new flavor.
171+
Right now, `MySQL`, `PostgreSQL`, `SQLServer`, `SQLite`, `CQL`, `ClickHouse`, `Presto` and `Oracle` are defined in flavor list. Feel free to open issue or send pull request if anyone asks for a new flavor.
172172

173173
By default, all builders uses `DefaultFlavor` to build SQL. The default value is `MySQL`.
174174

flavor_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ func TestFlavor(t *testing.T) {
1818
PostgreSQL: "PostgreSQL",
1919
SQLite: "SQLite",
2020
SQLServer: "SQLServer",
21+
CQL: "CQL",
22+
ClickHouse: "ClickHouse",
23+
Oracle: "Oracle",
2124
}
2225

2326
for f, expected := range cases {

insert_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func ExampleInsertBuilder() {
6565
// [1 Huan Du 1 2 Charmy Liu 1 1234567890]
6666
}
6767

68-
func ExampleInsertBuilder_Oracle() {
68+
func ExampleInsertBuilder_flavorOracle() {
6969
ib := Oracle.NewInsertBuilder()
7070
ib.InsertInto("demo.user")
7171
ib.Cols("id", "name", "status")

0 commit comments

Comments
 (0)