|
@@ -29,15 +29,6 @@ func ParseSqlResultTimeStr(timeStr string) (time.Time, error) {
|
|
|
|
|
|
type SqlResult map[string]any
|
|
type SqlResult map[string]any
|
|
|
|
|
|
-func (result SqlResult) ColumnValueTime(columnName string) time.Time {
|
|
|
|
- value, ok := result[columnName].(time.Time)
|
|
|
|
- if !ok {
|
|
|
|
- return time.Time{}
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- return value
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
func (result SqlResult) ColumnValueStringAsTime(columnName string) time.Time {
|
|
func (result SqlResult) ColumnValueStringAsTime(columnName string) time.Time {
|
|
value, ok := result[columnName].(string)
|
|
value, ok := result[columnName].(string)
|
|
if !ok {
|
|
if !ok {
|