postgres_storage

package
v0.0.0-...-d3a2b01 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LayersPgRepository

type LayersPgRepository struct{}

func (*LayersPgRepository) GetAllLayers

func (r *LayersPgRepository) GetAllLayers(conn storage.ConnDB) ([]string, error)

func (*LayersPgRepository) LayerExist

func (r *LayersPgRepository) LayerExist(conn storage.ConnDB, layer string) (bool, error)

func (*LayersPgRepository) SaveLayer

func (r *LayersPgRepository) SaveLayer(conn storage.ConnDB, name string) error

type ModelElementsPgRepository

type ModelElementsPgRepository struct{}

func (*ModelElementsPgRepository) GetAllModelElements

func (r *ModelElementsPgRepository) GetAllModelElements(conn storage.ConnDB, layer string) ([]entities.ModelElement, error)

func (*ModelElementsPgRepository) SaveModelElements

func (r *ModelElementsPgRepository) SaveModelElements(conn storage.ConnDB, layer string, modelElements []string) ([]int, error)

type ModelsPgRepository

type ModelsPgRepository struct{}

func (*ModelsPgRepository) GetAllModels

func (r *ModelsPgRepository) GetAllModels(conn storage.ConnDB, layer string) ([]entities.Model, error)

func (*ModelsPgRepository) SaveModels

func (r *ModelsPgRepository) SaveModels(conn storage.ConnDB, layer string, models []string) ([]int, error)

type PostgresStorage

func NewPostgresStorage

func NewPostgresStorage() *PostgresStorage

func (*PostgresStorage) CloseConn

func (ps *PostgresStorage) CloseConn(db storage.ConnDB) error

func (*PostgresStorage) OpenConn

func (ps *PostgresStorage) OpenConn(request *entities.AuthRequest, ctx context.Context) (storage.ConnDB, string, error)

type PropertiesPgRepository

type PropertiesPgRepository struct{}

func (*PropertiesPgRepository) GetAllProperties

func (r *PropertiesPgRepository) GetAllProperties(conn storage.ConnDB) ([]entities.Property, error)

func (*PropertiesPgRepository) GetPropertiesByUnit

func (r *PropertiesPgRepository) GetPropertiesByUnit(conn storage.ConnDB, layer string, unit interfaces.SearchUnitDTO) ([]entities.Property, error)

func (*PropertiesPgRepository) SaveProperties

func (r *PropertiesPgRepository) SaveProperties(conn storage.ConnDB, properties []string) ([]int, error)

type UnitsPgRepository

type UnitsPgRepository struct{}

func (*UnitsPgRepository) GetAllUnits

func (r *UnitsPgRepository) GetAllUnits(conn storage.ConnDB, layer string) (interfaces.OutputUnitsDTO, error)

func (*UnitsPgRepository) GetUnitsByModels

func (r *UnitsPgRepository) GetUnitsByModels(conn storage.ConnDB, layer string, modelsID []int) (interfaces.OutputUnitsDTO, error)

func (*UnitsPgRepository) GetUnitsByProperties

func (r *UnitsPgRepository) GetUnitsByProperties(conn storage.ConnDB, layer string, propertiesID []int) (interfaces.OutputUnitsDTO, error)

func (*UnitsPgRepository) RenameUnit

func (r *UnitsPgRepository) RenameUnit(conn storage.ConnDB, layer, lang, oldName, newName string) error

func (*UnitsPgRepository) SaveUnits

func (r *UnitsPgRepository) SaveUnits(conn storage.ConnDB, layer string, data interfaces.SaveUnitsDTO) error

func (*UnitsPgRepository) SetUnitProperties

func (r *UnitsPgRepository) SetUnitProperties(conn storage.ConnDB, layer, lang, unitName string, propertiesID []int) error

type UsersPgRepository

type UsersPgRepository struct{}

func (*UsersPgRepository) AddUser

func (r *UsersPgRepository) AddUser(conn storage.ConnDB, user interfaces.UserDTO) error

Jump to

Keyboard shortcuts

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