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 a2a4403 commit db3d581Copy full SHA for db3d581
docs/time.md
@@ -9,22 +9,20 @@ CREATE TABLE authors (
9
```
10
11
All PostgreSQL time and date types are returned as `time.Time` structs. For
12
-null time or date values, the `NullTime` type is used from the
13
-`github.com/lib/pq` package.
+null time or date values, the `NullTime` type from `database/sql` is used.
14
15
```go
16
package db
17
18
import (
19
"time"
20
-
21
- "github.com/lib/pq"
+ "database/sql"
22
)
23
24
type Author struct {
25
ID int
26
CreatedAt time.Time
27
- UpdatedAt pq.NullTime
+ UpdatedAt sql.NullTime
28
}
29
30
0 commit comments