Skip to content

Commit

Permalink
update doc and tests for oracle flavor
Browse files Browse the repository at this point in the history
  • Loading branch information
huandu committed Nov 4, 2023
1 parent 334a2a2 commit 92fd859
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ There are also some methods to combine conditions.

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

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.
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.

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

Expand Down
3 changes: 3 additions & 0 deletions flavor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ func TestFlavor(t *testing.T) {
PostgreSQL: "PostgreSQL",
SQLite: "SQLite",
SQLServer: "SQLServer",
CQL: "CQL",
ClickHouse: "ClickHouse",
Oracle: "Oracle",
}

for f, expected := range cases {
Expand Down
2 changes: 1 addition & 1 deletion insert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func ExampleInsertBuilder() {
// [1 Huan Du 1 2 Charmy Liu 1 1234567890]
}

func ExampleInsertBuilder_Oracle() {
func ExampleInsertBuilder_flavorOracle() {
ib := Oracle.NewInsertBuilder()
ib.InsertInto("demo.user")
ib.Cols("id", "name", "status")
Expand Down

0 comments on commit 92fd859

Please sign in to comment.