postgres

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresComponentDatabase

type PostgresComponentDatabase struct {
	DB *sqlx.DB
}

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

Jump to

Keyboard shortcuts

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