postgres

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NullString

type NullString struct {
	String string
	Valid  bool // Valid is true if String is not NULL
}

func (NullString) MarshalJSON

func (f NullString) MarshalJSON() ([]byte, error)

func (*NullString) UnmarshalJSON

func (f *NullString) UnmarshalJSON(b []byte) error

type NullStringArray

type NullStringArray []NullString

func (NullStringArray) MarshalJSON

func (f NullStringArray) MarshalJSON() ([]byte, error)

func (*NullStringArray) Scan

func (f *NullStringArray) Scan(value interface{}) error

func (*NullStringArray) UnmarshalJSON

func (f *NullStringArray) UnmarshalJSON(b []byte) error

func (NullStringArray) Value

func (f NullStringArray) Value() (driver.Value, error)

type Postgres

type Postgres struct {
	// contains filtered or unexported fields
}

Postgres struct

func New

func New(db *sql.DB) *Postgres

New return new Postgres

func (*Postgres) Analyze

func (p *Postgres) Analyze(s *schema.Schema) error

Analyze PostgreSQL database schema

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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