{"modulePath":"github.com/goplus/ixgo","version":"v1.2.10","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sql\n\n## Types\n\n```go\ntype Null[T any] struct {\n\tV     T\n\tValid bool\n}\n```\nNull represents a value that may be null. Null implements the \\[Scanner] interface so it can be used as a scan destination:\n\n\tvar s Null[string]\n\terr := db.QueryRow(\"SELECT name FROM foo WHERE id=?\", id).Scan(\u0026s)\n\t...\n\tif s.Valid {\n\t   // use s.V\n\t} else {\n\t   // NULL value\n\t}\n\nT should be one of the types accepted by [driver.Value](/database/sql/driver#Value).\n\n```go\nfunc (n *Null[T]) Scan(value any) error\n```\n\n```go\nfunc (n Null[T]) Value() (driver.Value, error)\n```\n\n","path":"github.com/goplus/ixgo/pkg/database/sql/_patch","name":"sql","synopsis":"","isRedistributable":true}
