plain

package
v1.0.69 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const TABLE_NAME = "TEST_PLAIN_ENTITY_TABLE"

Variables

View Source
var (
	Entity_id     = "id"
	Entity_field1 = "field1"
	Entity_field2 = "field2"
)

Functions

This section is empty.

Types

type TestPlainEntity

type TestPlainEntity struct {
	ID     int64 // ID field is mandatory
	Field1 int64
	Field2 string
}

func (TestPlainEntity) GetID

func (p TestPlainEntity) GetID() int64

type TestPlainEntityRepository

type TestPlainEntityRepository struct {
	pg.Repository[TestPlainEntity]
}

func NewTestPlainEntityRepository

func NewTestPlainEntityRepository(db pg.DbClient) TestPlainEntityRepository

func (*TestPlainEntityRepository) GetOneByField2

func (repo *TestPlainEntityRepository) GetOneByField2(ctx context.Context, field2 string) any

func (*TestPlainEntityRepository) IncreaseField1

func (repo *TestPlainEntityRepository) IncreaseField1(ctx context.Context, id int64) int64

Jump to

Keyboard shortcuts

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