datasource

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the datasource type in the database.
	Label = "data_source"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldAddress holds the string denoting the address field in the database.
	FieldAddress = "address"
	// EdgeIntervals holds the string denoting the intervals edge name in mutations.
	EdgeIntervals = "intervals"
	// Table holds the table name of the datasource in the database.
	Table = "data_sources"
	// IntervalsTable is the table that holds the intervals relation/edge.
	IntervalsTable = "intervals"
	// IntervalsInverseTable is the table name for the Interval entity.
	// It exists in this package in order to avoid circular dependency with the "interval" package.
	IntervalsInverseTable = "intervals"
	// IntervalsColumn is the table column denoting the intervals relation/edge.
	IntervalsColumn = "data_source_id"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultAddress holds the default value on creation for the "address" field.
	DefaultAddress string
)

Columns holds all SQL columns for datasource fields.

Functions

func Address

func Address(v string) predicate.DataSource

Address applies equality check predicate on the "address" field. It's identical to AddressEQ.

func AddressContains

func AddressContains(v string) predicate.DataSource

AddressContains applies the Contains predicate on the "address" field.

func AddressContainsFold

func AddressContainsFold(v string) predicate.DataSource

AddressContainsFold applies the ContainsFold predicate on the "address" field.

func AddressEQ

func AddressEQ(v string) predicate.DataSource

AddressEQ applies the EQ predicate on the "address" field.

func AddressEqualFold

func AddressEqualFold(v string) predicate.DataSource

AddressEqualFold applies the EqualFold predicate on the "address" field.

func AddressGT

func AddressGT(v string) predicate.DataSource

AddressGT applies the GT predicate on the "address" field.

func AddressGTE

func AddressGTE(v string) predicate.DataSource

AddressGTE applies the GTE predicate on the "address" field.

func AddressHasPrefix

func AddressHasPrefix(v string) predicate.DataSource

AddressHasPrefix applies the HasPrefix predicate on the "address" field.

func AddressHasSuffix

func AddressHasSuffix(v string) predicate.DataSource

AddressHasSuffix applies the HasSuffix predicate on the "address" field.

func AddressIn

func AddressIn(vs ...string) predicate.DataSource

AddressIn applies the In predicate on the "address" field.

func AddressLT

func AddressLT(v string) predicate.DataSource

AddressLT applies the LT predicate on the "address" field.

func AddressLTE

func AddressLTE(v string) predicate.DataSource

AddressLTE applies the LTE predicate on the "address" field.

func AddressNEQ

func AddressNEQ(v string) predicate.DataSource

AddressNEQ applies the NEQ predicate on the "address" field.

func AddressNotIn

func AddressNotIn(vs ...string) predicate.DataSource

AddressNotIn applies the NotIn predicate on the "address" field.

func And

func And(predicates ...predicate.DataSource) predicate.DataSource

And groups predicates with the AND operator between them.

func HasIntervals

func HasIntervals() predicate.DataSource

HasIntervals applies the HasEdge predicate on the "intervals" edge.

func HasIntervalsWith

func HasIntervalsWith(preds ...predicate.Interval) predicate.DataSource

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

func ID

func ID(id int) predicate.DataSource

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.DataSource

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.DataSource

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.DataSource

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.DataSource

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.DataSource

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.DataSource

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Name

func Name(v string) predicate.DataSource

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

func NameContains

func NameContains(v string) predicate.DataSource

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

func NameContainsFold

func NameContainsFold(v string) predicate.DataSource

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

func NameEQ

func NameEQ(v string) predicate.DataSource

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

func NameEqualFold

func NameEqualFold(v string) predicate.DataSource

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

func NameGT

func NameGT(v string) predicate.DataSource

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

func NameGTE

func NameGTE(v string) predicate.DataSource

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.DataSource

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.DataSource

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

func NameIn

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

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

func NameLT

func NameLT(v string) predicate.DataSource

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

func NameLTE

func NameLTE(v string) predicate.DataSource

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

func NameNEQ

func NameNEQ(v string) predicate.DataSource

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

func NameNotIn

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

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.DataSource) predicate.DataSource

Or groups predicates with the OR operator between them.

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