maplayer

package
v0.0.0-...-3c02646 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the maplayer type in the database.
	Label = "map_layer"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldURLTemplate holds the string denoting the url_template field in the database.
	FieldURLTemplate = "url_template"
	// FieldIsPublic holds the string denoting the is_public field in the database.
	FieldIsPublic = "is_public"

	// EdgeMetadata holds the string denoting the metadata edge name in mutations.
	EdgeMetadata = "metadata"
	// EdgeMapType holds the string denoting the map_type edge name in mutations.
	EdgeMapType = "map_type"

	// Table holds the table name of the maplayer in the database.
	Table = "map_layers"
	// MetadataTable is the table the holds the metadata relation/edge.
	MetadataTable = "map_layers"
	// MetadataInverseTable is the table name for the Metadata entity.
	// It exists in this package in order to avoid circular dependency with the "metadata" package.
	MetadataInverseTable = "metadata"
	// MetadataColumn is the table column denoting the metadata relation/edge.
	MetadataColumn = "map_layer_metadata"
	// MapTypeTable is the table the holds the map_type relation/edge.
	MapTypeTable = "map_layers"
	// MapTypeInverseTable is the table name for the MapType entity.
	// It exists in this package in order to avoid circular dependency with the "maptype" package.
	MapTypeInverseTable = "map_types"
	// MapTypeColumn is the table column denoting the map_type relation/edge.
	MapTypeColumn = "map_layer_map_type"
)

Variables

View Source
var (
	// DefaultCreatedAt holds the default value on creation for the created_at field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the updated_at field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the updated_at field.
	UpdateDefaultUpdatedAt func() time.Time
)

Columns holds all SQL columns for maplayer fields.

View Source
var ForeignKeys = []string{
	"map_layer_metadata",
	"map_layer_map_type",
}

ForeignKeys holds the SQL foreign-keys that are owned by the MapLayer type.

Functions

func And

func And(predicates ...predicate.MapLayer) predicate.MapLayer

And groups list of predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.MapLayer

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.MapLayer

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.MapLayer

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.MapLayer

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.MapLayer

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.MapLayer

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.MapLayer

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.MapLayer

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.MapLayer

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func HasMapType

func HasMapType() predicate.MapLayer

HasMapType applies the HasEdge predicate on the "map_type" edge.

func HasMapTypeWith

func HasMapTypeWith(preds ...predicate.MapType) predicate.MapLayer

HasMapTypeWith applies the HasEdge predicate on the "map_type" edge with a given conditions (other predicates).

func HasMetadata

func HasMetadata() predicate.MapLayer

HasMetadata applies the HasEdge predicate on the "metadata" edge.

func HasMetadataWith

func HasMetadataWith(preds ...predicate.Metadata) predicate.MapLayer

HasMetadataWith applies the HasEdge predicate on the "metadata" edge with a given conditions (other predicates).

func ID

func ID(id int) predicate.MapLayer

ID filters vertices based on their identifier.

func IDEQ

func IDEQ(id int) predicate.MapLayer

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.MapLayer

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.MapLayer

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.MapLayer

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.MapLayer

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.MapLayer

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.MapLayer

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.MapLayer

IDNotIn applies the NotIn predicate on the ID field.

func IsPublic

func IsPublic(v bool) predicate.MapLayer

IsPublic applies equality check predicate on the "is_public" field. It's identical to IsPublicEQ.

func IsPublicEQ

func IsPublicEQ(v bool) predicate.MapLayer

IsPublicEQ applies the EQ predicate on the "is_public" field.

func IsPublicNEQ

func IsPublicNEQ(v bool) predicate.MapLayer

IsPublicNEQ applies the NEQ predicate on the "is_public" field.

func Name

func Name(v string) predicate.MapLayer

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.MapLayer

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.MapLayer

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.MapLayer

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.MapLayer

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.MapLayer

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.MapLayer

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.MapLayer

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.MapLayer

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.MapLayer

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.MapLayer

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.MapLayer

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.MapLayer

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.MapLayer

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.MapLayer) predicate.MapLayer

Or groups list of predicates with the OR operator between them.

func URLTemplate

func URLTemplate(v string) predicate.MapLayer

URLTemplate applies equality check predicate on the "url_template" field. It's identical to URLTemplateEQ.

func URLTemplateContains

func URLTemplateContains(v string) predicate.MapLayer

URLTemplateContains applies the Contains predicate on the "url_template" field.

func URLTemplateContainsFold

func URLTemplateContainsFold(v string) predicate.MapLayer

URLTemplateContainsFold applies the ContainsFold predicate on the "url_template" field.

func URLTemplateEQ

func URLTemplateEQ(v string) predicate.MapLayer

URLTemplateEQ applies the EQ predicate on the "url_template" field.

func URLTemplateEqualFold

func URLTemplateEqualFold(v string) predicate.MapLayer

URLTemplateEqualFold applies the EqualFold predicate on the "url_template" field.

func URLTemplateGT

func URLTemplateGT(v string) predicate.MapLayer

URLTemplateGT applies the GT predicate on the "url_template" field.

func URLTemplateGTE

func URLTemplateGTE(v string) predicate.MapLayer

URLTemplateGTE applies the GTE predicate on the "url_template" field.

func URLTemplateHasPrefix

func URLTemplateHasPrefix(v string) predicate.MapLayer

URLTemplateHasPrefix applies the HasPrefix predicate on the "url_template" field.

func URLTemplateHasSuffix

func URLTemplateHasSuffix(v string) predicate.MapLayer

URLTemplateHasSuffix applies the HasSuffix predicate on the "url_template" field.

func URLTemplateIn

func URLTemplateIn(vs ...string) predicate.MapLayer

URLTemplateIn applies the In predicate on the "url_template" field.

func URLTemplateLT

func URLTemplateLT(v string) predicate.MapLayer

URLTemplateLT applies the LT predicate on the "url_template" field.

func URLTemplateLTE

func URLTemplateLTE(v string) predicate.MapLayer

URLTemplateLTE applies the LTE predicate on the "url_template" field.

func URLTemplateNEQ

func URLTemplateNEQ(v string) predicate.MapLayer

URLTemplateNEQ applies the NEQ predicate on the "url_template" field.

func URLTemplateNotIn

func URLTemplateNotIn(vs ...string) predicate.MapLayer

URLTemplateNotIn applies the NotIn predicate on the "url_template" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.MapLayer

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.MapLayer

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.MapLayer

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.MapLayer

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.MapLayer

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.MapLayer

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.MapLayer

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.MapLayer

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.MapLayer

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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