-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fix timestamp or date type as go query parameters. - basic facility to support SQL Null as input or output. - more tests
- Loading branch information
1 parent
49f51dd
commit bffc68a
Showing
7 changed files
with
298 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package openmldb | ||
|
||
import ( | ||
"time" | ||
) | ||
|
||
func parseDateStr(src string) (time.Time, error) { | ||
// api server returns date type as string formatted 'yyyy-mm-dd' | ||
dval, err := time.Parse(time.DateOnly, src) | ||
if err != nil { | ||
return time.Time{}, err | ||
} | ||
|
||
return dval, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/4paradigm/openmldb-go-sdk | ||
|
||
go 1.18 | ||
go 1.22 | ||
|
||
require github.com/stretchr/testify v1.9.0 | ||
|
||
|
Oops, something went wrong.