go-sql-driver / go-sql-driver/mysql

Make parseDateTime and friends (format..., parseBinary...) public

Open
#1,497 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
15.3k
Forks
2.3k
Avg merge
2h 23m
Merged PRs (30d)
10

Description

It is possible that for whatever reason "parseTime" is not specified in the connection string (indeed, it is disabled by default). However, users still need to parse the various time values returned by MySQL and usually do so via all kinds of not quite correct ways using `time.Parse`.

Would not it make all the sense to export the existing time handling functions for the benefit of the users?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.