From 301c7137368c953c825fe9a9a4bfee47c7eb527d Mon Sep 17 00:00:00 2001 From: Johan Brandhorst-Satzkorn Date: Fri, 18 Sep 2020 12:00:22 +0100 Subject: [PATCH] Remove pq.NullTime mention from time docs This was changed in https://github.com/kyleconroy/sqlc/pull/182 --- docs/time.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/time.md b/docs/time.md index daebc724b9..4a66e3be86 100644 --- a/docs/time.md +++ b/docs/time.md @@ -9,22 +9,20 @@ CREATE TABLE authors ( ``` All PostgreSQL time and date types are returned as `time.Time` structs. For -null time or date values, the `NullTime` type is used from the -`github.com/lib/pq` package. +null time or date values, the `NullTime` type from `database/sql` is used. ```go package db import ( "time" - - "github.com/lib/pq" + "database/sql" ) type Author struct { ID int CreatedAt time.Time - UpdatedAt pq.NullTime + UpdatedAt sql.NullTime } ```