init
Some checks failed
Build and Release / release (push) Failing after 51s

This commit is contained in:
2026-03-25 22:29:07 +07:00
parent eedd300861
commit 79199f627d
65 changed files with 3215 additions and 689 deletions

View File

@@ -1,6 +1,10 @@
package convert
import "github.com/jackc/pgx/v5/pgtype"
import (
"time"
"github.com/jackc/pgx/v5/pgtype"
)
func UUIDToString(v pgtype.UUID) string {
if v.Valid {
@@ -23,10 +27,10 @@ func BoolVal(v pgtype.Bool) bool {
return false
}
func TimeToPtr(v pgtype.Timestamptz) *string {
if v.Valid {
t := v.Time.Format("2006-01-02T15:04:05Z07:00")
return &t
func TimeToPtr(v pgtype.Timestamptz) *time.Time {
if !v.Valid {
return nil
}
return nil
t := v.Time
return &t
}