postgres

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDriver

func NewDriver() jdb.Driver

Types

type Postgres

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

func (*Postgres) Command

func (s *Postgres) Command(command *jdb.Command) (et.Item, error)

func (*Postgres) Connect

func (s *Postgres) Connect(params et.Json) error

func (*Postgres) Count

func (s *Postgres) Count(linq *jdb.Linq) (int, error)

func (*Postgres) CreateCore added in v1.0.3

func (s *Postgres) CreateCore() error

func (*Postgres) CreateDatabase

func (s *Postgres) CreateDatabase(name string) error

func (*Postgres) CreateModel added in v1.0.3

func (s *Postgres) CreateModel(model *jdb.Model) error

func (*Postgres) CreateSchema added in v1.0.3

func (s *Postgres) CreateSchema(name string) error

func (*Postgres) Current added in v1.0.3

func (s *Postgres) Current(command *jdb.Command) (et.Items, error)

func (*Postgres) CurrentSerie added in v1.0.3

func (s *Postgres) CurrentSerie(tag string) int64

func (*Postgres) DefaultValue added in v1.0.3

func (s *Postgres) DefaultValue(tp jdb.TypeData) interface{}

func (*Postgres) DeleteUser

func (s *Postgres) DeleteUser(username string) error

func (*Postgres) Disconnect

func (s *Postgres) Disconnect() error

func (*Postgres) DropDatabase

func (s *Postgres) DropDatabase(name string) error

func (*Postgres) DropSchema

func (s *Postgres) DropSchema(name string) error

func (*Postgres) Exec added in v1.0.3

func (s *Postgres) Exec(sql string, params ...interface{}) error

func (*Postgres) GetSerie added in v1.0.3

func (s *Postgres) GetSerie(tag string) int64

func (*Postgres) Last added in v1.0.3

func (s *Postgres) Last(linq *jdb.Linq) (et.Items, error)

func (*Postgres) MutateModel

func (s *Postgres) MutateModel(model *jdb.Model) error

func (*Postgres) Name

func (s *Postgres) Name() string

func (*Postgres) NextCode added in v1.0.3

func (s *Postgres) NextCode(tag, prefix string) string

func (*Postgres) One added in v1.0.3

func (s *Postgres) One(sql string, params ...interface{}) (et.Item, error)

func (*Postgres) Query

func (s *Postgres) Query(linq *jdb.Linq) (et.Items, error)

func (*Postgres) SQL added in v1.0.3

func (s *Postgres) SQL(sql string, params ...interface{}) (et.Items, error)

func (*Postgres) SetMain

func (s *Postgres) SetMain(params et.Json) error

func (*Postgres) SetSerie added in v1.0.3

func (s *Postgres) SetSerie(tag string, val int) int64

func (*Postgres) SetUser added in v1.0.3

func (s *Postgres) SetUser(username, password, confirmation string) error

Jump to

Keyboard shortcuts

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