Help us shape the future of Go! Take the 2026 Go Developer Survey

entity

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestEntityEnumOne = "one"
	TestEntityEnumTwo = "two"
)

Variables

Functions

This section is empty.

Types

type TestEntityEnum

type TestEntityEnum struct {
	TestEntityEnumOne string
	TestEntityEnumTwo string
}

type TestEntityOne

type TestEntityOne struct {
	beeorm.ORM    `orm:"table=test_entity_one;redisCache;redisSearch=search_pool"`
	ID            uint64           `orm:"searchable;sortable"`
	UintPtr       *uint64          `orm:"searchable;sortable"`
	Int           int64            `orm:"searchable;sortable"`
	IntPtr        *int64           `orm:"searchable;sortable"`
	Float         float64          `orm:"searchable;sortable"`
	FloatPtr      *float64         `orm:"searchable;sortable"`
	String        string           `orm:"searchable;sortable"`
	StringPtr     *string          `orm:"searchable;sortable"`
	StringEnum    string           `orm:"searchable;sortable;enum=entity.TestEntityEnumAll"`
	StringEnumPtr *string          `orm:"searchable;sortable;enum=entity.TestEntityEnumAll"`
	StringSlice   []string         `orm:"searchable"`
	Bool          bool             `orm:"searchable;sortable"`
	BoolPtr       *bool            `orm:"searchable;sortable"`
	Time          time.Time        `orm:"searchable;sortable;time=true"`
	TimePtr       *time.Time       `orm:"searchable;sortable;time=true"`
	ForeignKey    *TestEntityTwo   `orm:"searchable;sortable"`
	Many          []*TestEntityTwo `orm:"searchable"`
	FakeDelete    bool             `orm:"searchable"`
}

type TestEntityTwo

type TestEntityTwo struct {
	beeorm.ORM `orm:"table=test_entity_two;redisCache;redisSearch=search_pool"`
	ID         uint64
	Field      string `orm:"searchable;sortable"`
}

Jump to

Keyboard shortcuts

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