dal

package
v0.0.0-...-942b6ec Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataAccessLayer

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

func (*DataAccessLayer) Connect

func (dal *DataAccessLayer) Connect(config *config.MySQLConfig) error

Connect connects a DAL to a database using the passed config

func (*DataAccessLayer) CountAll

func (dal *DataAccessLayer) CountAll(tableName string, columns []string, includedIds []int64) (int64, error)

func (*DataAccessLayer) DescribeTable

func (dal *DataAccessLayer) DescribeTable(tableName string) ([]*model.TableDescription, error)

DescribeTable describes a table to enable mapping

func (*DataAccessLayer) SelectAll

func (dal *DataAccessLayer) SelectAll(tableName string, columns []string, offset, limit *int64, includedIds []int64) ([][]interface{}, error)

func (*DataAccessLayer) SelectTVFlexFromPages

func (dal *DataAccessLayer) SelectTVFlexFromPages() ([]*model.TVFlex, error)

SelectTVFlexFromPages gets the TemplaVoila Plus flex elements from all pages

func (*DataAccessLayer) Upsert

func (dal *DataAccessLayer) Upsert(tableName string, columns []string, values []interface{}) error

Jump to

Keyboard shortcuts

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