pgjsontypes

package
v2.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package pgjsontypes contains types for interacting with JSON objects in Postgres.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringMap

type StringMap struct {
	Data map[string]string
}

StringMap wraps a map[string]string that is stored as JSONB in the database. While structs can be directly inserted into JSONB columns by the pgx driver, a raw map[string]string cannot be.

func (*StringMap) Scan

func (c *StringMap) Scan(src any) error

Scan implements database/sql.Scanner.

func (StringMap) Value

func (c StringMap) Value() (driver.Value, error)

Value implements database/sql/driver.Valuer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL