source

package
v2.0.0-alpha.13 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTotalSourcesCount

func GetTotalSourcesCount(dbConnPgx utils.PgxIface) (*int, error)

func InsertSource

func InsertSource(dbConnPgx utils.PgxIface, source *Source) (int, error)

func InsertSources

func InsertSources(dbConnPgx utils.PgxIface, sources []Source) error

func RemoveSource

func RemoveSource(dbConnPgx utils.PgxIface, sourceID *int) error

func UpdateSource

func UpdateSource(dbConnPgx utils.PgxIface, source *Source) error

Types

type Source

type Source struct {
	ID            *int      `json:"id" db:"id"`                        //1
	UUID          string    `json:"uuid" db:"uuid"`                    //2
	Name          string    `json:"name" db:"name"`                    //3
	AlternateName string    `json:"alternateName" db:"alternate_name"` //4
	URL           string    `json:"url" db:"url"`                      //5
	Ticker        string    `json:"ticker" db:"ticker"`                //6
	Description   string    `json:"description" db:"description"`      //7
	CreatedBy     string    `json:"createdBy" db:"created_by"`         //8
	CreatedAt     time.Time `json:"createdAt" db:"created_at"`         //9
	UpdatedBy     string    `json:"updatedBy" db:"updated_by"`         //10
	UpdatedAt     time.Time `json:"updatedAt" db:"updated_at"`         //11
}

Source

func GetSource

func GetSource(dbConnPgx utils.PgxIface, sourceID *int) (*Source, error)

func GetSourceList

func GetSourceList(dbConnPgx utils.PgxIface, ids []int) ([]Source, error)

func GetSourceListByPagination

func GetSourceListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]Source, error)

for refinedev

Jump to

Keyboard shortcuts

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