Documentation ¶
Index ¶
- type PostgresComponentDatabase
- func (pcd *PostgresComponentDatabase) DeleteComponent(id string) error
- func (pcd *PostgresComponentDatabase) GetComponent(id string) (*components.Component, error)
- func (pcd *PostgresComponentDatabase) InsertComponent(component *components.Component) (string, error)
- func (pcd *PostgresComponentDatabase) UpdateComponent(component *components.Component) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresComponentDatabase ¶
func (*PostgresComponentDatabase) DeleteComponent ¶
func (pcd *PostgresComponentDatabase) DeleteComponent(id string) error
func (*PostgresComponentDatabase) GetComponent ¶
func (pcd *PostgresComponentDatabase) GetComponent(id string) (*components.Component, error)
PGGetComponent returns a single component from the database based on the id or xname
func (*PostgresComponentDatabase) InsertComponent ¶
func (pcd *PostgresComponentDatabase) InsertComponent(component *components.Component) (string, error)
InsertComponent inserts a component into the database and returns the uuid generated within the database
func (*PostgresComponentDatabase) UpdateComponent ¶
func (pcd *PostgresComponentDatabase) UpdateComponent(component *components.Component) error
Click to show internal directories.
Click to hide internal directories.