We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4462fa0 commit 81c3018Copy full SHA for 81c3018
sql/types/datetime.go
@@ -106,6 +106,8 @@ var (
106
Date = MustCreateDatetimeType(sqltypes.Date, 0)
107
// Datetime is a date and a time with default precision (no fractional seconds).
108
Datetime = MustCreateDatetimeType(sqltypes.Datetime, 0)
109
+ // Datetime3Precision is a date and time with a precision of 3 (fractional seconds to 3 decimal places)
110
+ Datetime3Precision = MustCreateDatetimeType(sqltypes.Datetime, 3)
111
// DatetimeMaxPrecision is a date and a time with maximum precision
112
DatetimeMaxPrecision = MustCreateDatetimeType(sqltypes.Datetime, MaxDatetimePrecision)
113
// Timestamp is a UNIX timestamp with default precision (no fractional seconds).
0 commit comments