Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Database) predicate.Database
- func CreatedAt(v time.Time) predicate.Database
- func CreatedAtEQ(v time.Time) predicate.Database
- func CreatedAtGT(v time.Time) predicate.Database
- func CreatedAtGTE(v time.Time) predicate.Database
- func CreatedAtIn(vs ...time.Time) predicate.Database
- func CreatedAtIsNil() predicate.Database
- func CreatedAtLT(v time.Time) predicate.Database
- func CreatedAtLTE(v time.Time) predicate.Database
- func CreatedAtNEQ(v time.Time) predicate.Database
- func CreatedAtNotIn(vs ...time.Time) predicate.Database
- func CreatedAtNotNil() predicate.Database
- func CreatedBy(v string) predicate.Database
- func CreatedByContains(v string) predicate.Database
- func CreatedByContainsFold(v string) predicate.Database
- func CreatedByEQ(v string) predicate.Database
- func CreatedByEqualFold(v string) predicate.Database
- func CreatedByGT(v string) predicate.Database
- func CreatedByGTE(v string) predicate.Database
- func CreatedByHasPrefix(v string) predicate.Database
- func CreatedByHasSuffix(v string) predicate.Database
- func CreatedByIn(vs ...string) predicate.Database
- func CreatedByIsNil() predicate.Database
- func CreatedByLT(v string) predicate.Database
- func CreatedByLTE(v string) predicate.Database
- func CreatedByNEQ(v string) predicate.Database
- func CreatedByNotIn(vs ...string) predicate.Database
- func CreatedByNotNil() predicate.Database
- func DeletedAt(v time.Time) predicate.Database
- func DeletedAtEQ(v time.Time) predicate.Database
- func DeletedAtGT(v time.Time) predicate.Database
- func DeletedAtGTE(v time.Time) predicate.Database
- func DeletedAtIn(vs ...time.Time) predicate.Database
- func DeletedAtIsNil() predicate.Database
- func DeletedAtLT(v time.Time) predicate.Database
- func DeletedAtLTE(v time.Time) predicate.Database
- func DeletedAtNEQ(v time.Time) predicate.Database
- func DeletedAtNotIn(vs ...time.Time) predicate.Database
- func DeletedAtNotNil() predicate.Database
- func DeletedBy(v string) predicate.Database
- func DeletedByContains(v string) predicate.Database
- func DeletedByContainsFold(v string) predicate.Database
- func DeletedByEQ(v string) predicate.Database
- func DeletedByEqualFold(v string) predicate.Database
- func DeletedByGT(v string) predicate.Database
- func DeletedByGTE(v string) predicate.Database
- func DeletedByHasPrefix(v string) predicate.Database
- func DeletedByHasSuffix(v string) predicate.Database
- func DeletedByIn(vs ...string) predicate.Database
- func DeletedByIsNil() predicate.Database
- func DeletedByLT(v string) predicate.Database
- func DeletedByLTE(v string) predicate.Database
- func DeletedByNEQ(v string) predicate.Database
- func DeletedByNotIn(vs ...string) predicate.Database
- func DeletedByNotNil() predicate.Database
- func Dsn(v string) predicate.Database
- func DsnContains(v string) predicate.Database
- func DsnContainsFold(v string) predicate.Database
- func DsnEQ(v string) predicate.Database
- func DsnEqualFold(v string) predicate.Database
- func DsnGT(v string) predicate.Database
- func DsnGTE(v string) predicate.Database
- func DsnHasPrefix(v string) predicate.Database
- func DsnHasSuffix(v string) predicate.Database
- func DsnIn(vs ...string) predicate.Database
- func DsnLT(v string) predicate.Database
- func DsnLTE(v string) predicate.Database
- func DsnNEQ(v string) predicate.Database
- func DsnNotIn(vs ...string) predicate.Database
- func Geo(v string) predicate.Database
- func GeoContains(v string) predicate.Database
- func GeoContainsFold(v string) predicate.Database
- func GeoEQ(v string) predicate.Database
- func GeoEqualFold(v string) predicate.Database
- func GeoGT(v string) predicate.Database
- func GeoGTE(v string) predicate.Database
- func GeoHasPrefix(v string) predicate.Database
- func GeoHasSuffix(v string) predicate.Database
- func GeoIn(vs ...string) predicate.Database
- func GeoIsNil() predicate.Database
- func GeoLT(v string) predicate.Database
- func GeoLTE(v string) predicate.Database
- func GeoNEQ(v string) predicate.Database
- func GeoNotIn(vs ...string) predicate.Database
- func GeoNotNil() predicate.Database
- func GroupID(v string) predicate.Database
- func GroupIDContains(v string) predicate.Database
- func GroupIDContainsFold(v string) predicate.Database
- func GroupIDEQ(v string) predicate.Database
- func GroupIDEqualFold(v string) predicate.Database
- func GroupIDGT(v string) predicate.Database
- func GroupIDGTE(v string) predicate.Database
- func GroupIDHasPrefix(v string) predicate.Database
- func GroupIDHasSuffix(v string) predicate.Database
- func GroupIDIn(vs ...string) predicate.Database
- func GroupIDLT(v string) predicate.Database
- func GroupIDLTE(v string) predicate.Database
- func GroupIDNEQ(v string) predicate.Database
- func GroupIDNotIn(vs ...string) predicate.Database
- func HasGroup() predicate.Database
- func HasGroupWith(preds ...predicate.Group) predicate.Database
- func ID(id string) predicate.Database
- func IDContainsFold(id string) predicate.Database
- func IDEQ(id string) predicate.Database
- func IDEqualFold(id string) predicate.Database
- func IDGT(id string) predicate.Database
- func IDGTE(id string) predicate.Database
- func IDIn(ids ...string) predicate.Database
- func IDLT(id string) predicate.Database
- func IDLTE(id string) predicate.Database
- func IDNEQ(id string) predicate.Database
- func IDNotIn(ids ...string) predicate.Database
- func MappingID(v string) predicate.Database
- func MappingIDContains(v string) predicate.Database
- func MappingIDContainsFold(v string) predicate.Database
- func MappingIDEQ(v string) predicate.Database
- func MappingIDEqualFold(v string) predicate.Database
- func MappingIDGT(v string) predicate.Database
- func MappingIDGTE(v string) predicate.Database
- func MappingIDHasPrefix(v string) predicate.Database
- func MappingIDHasSuffix(v string) predicate.Database
- func MappingIDIn(vs ...string) predicate.Database
- func MappingIDLT(v string) predicate.Database
- func MappingIDLTE(v string) predicate.Database
- func MappingIDNEQ(v string) predicate.Database
- func MappingIDNotIn(vs ...string) predicate.Database
- func Name(v string) predicate.Database
- func NameContains(v string) predicate.Database
- func NameContainsFold(v string) predicate.Database
- func NameEQ(v string) predicate.Database
- func NameEqualFold(v string) predicate.Database
- func NameGT(v string) predicate.Database
- func NameGTE(v string) predicate.Database
- func NameHasPrefix(v string) predicate.Database
- func NameHasSuffix(v string) predicate.Database
- func NameIn(vs ...string) predicate.Database
- func NameLT(v string) predicate.Database
- func NameLTE(v string) predicate.Database
- func NameNEQ(v string) predicate.Database
- func NameNotIn(vs ...string) predicate.Database
- func Not(p predicate.Database) predicate.Database
- func Or(predicates ...predicate.Database) predicate.Database
- func OrganizationID(v string) predicate.Database
- func OrganizationIDContains(v string) predicate.Database
- func OrganizationIDContainsFold(v string) predicate.Database
- func OrganizationIDEQ(v string) predicate.Database
- func OrganizationIDEqualFold(v string) predicate.Database
- func OrganizationIDGT(v string) predicate.Database
- func OrganizationIDGTE(v string) predicate.Database
- func OrganizationIDHasPrefix(v string) predicate.Database
- func OrganizationIDHasSuffix(v string) predicate.Database
- func OrganizationIDIn(vs ...string) predicate.Database
- func OrganizationIDLT(v string) predicate.Database
- func OrganizationIDLTE(v string) predicate.Database
- func OrganizationIDNEQ(v string) predicate.Database
- func OrganizationIDNotIn(vs ...string) predicate.Database
- func ProviderEQ(v enums.DatabaseProvider) predicate.Database
- func ProviderIn(vs ...enums.DatabaseProvider) predicate.Database
- func ProviderNEQ(v enums.DatabaseProvider) predicate.Database
- func ProviderNotIn(vs ...enums.DatabaseProvider) predicate.Database
- func ProviderValidator(pr enums.DatabaseProvider) error
- func StatusEQ(v enums.DatabaseStatus) predicate.Database
- func StatusIn(vs ...enums.DatabaseStatus) predicate.Database
- func StatusNEQ(v enums.DatabaseStatus) predicate.Database
- func StatusNotIn(vs ...enums.DatabaseStatus) predicate.Database
- func StatusValidator(s enums.DatabaseStatus) error
- func Token(v string) predicate.Database
- func TokenContains(v string) predicate.Database
- func TokenContainsFold(v string) predicate.Database
- func TokenEQ(v string) predicate.Database
- func TokenEqualFold(v string) predicate.Database
- func TokenGT(v string) predicate.Database
- func TokenGTE(v string) predicate.Database
- func TokenHasPrefix(v string) predicate.Database
- func TokenHasSuffix(v string) predicate.Database
- func TokenIn(vs ...string) predicate.Database
- func TokenIsNil() predicate.Database
- func TokenLT(v string) predicate.Database
- func TokenLTE(v string) predicate.Database
- func TokenNEQ(v string) predicate.Database
- func TokenNotIn(vs ...string) predicate.Database
- func TokenNotNil() predicate.Database
- func UpdatedAt(v time.Time) predicate.Database
- func UpdatedAtEQ(v time.Time) predicate.Database
- func UpdatedAtGT(v time.Time) predicate.Database
- func UpdatedAtGTE(v time.Time) predicate.Database
- func UpdatedAtIn(vs ...time.Time) predicate.Database
- func UpdatedAtIsNil() predicate.Database
- func UpdatedAtLT(v time.Time) predicate.Database
- func UpdatedAtLTE(v time.Time) predicate.Database
- func UpdatedAtNEQ(v time.Time) predicate.Database
- func UpdatedAtNotIn(vs ...time.Time) predicate.Database
- func UpdatedAtNotNil() predicate.Database
- func UpdatedBy(v string) predicate.Database
- func UpdatedByContains(v string) predicate.Database
- func UpdatedByContainsFold(v string) predicate.Database
- func UpdatedByEQ(v string) predicate.Database
- func UpdatedByEqualFold(v string) predicate.Database
- func UpdatedByGT(v string) predicate.Database
- func UpdatedByGTE(v string) predicate.Database
- func UpdatedByHasPrefix(v string) predicate.Database
- func UpdatedByHasSuffix(v string) predicate.Database
- func UpdatedByIn(vs ...string) predicate.Database
- func UpdatedByIsNil() predicate.Database
- func UpdatedByLT(v string) predicate.Database
- func UpdatedByLTE(v string) predicate.Database
- func UpdatedByNEQ(v string) predicate.Database
- func UpdatedByNotIn(vs ...string) predicate.Database
- func UpdatedByNotNil() predicate.Database
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDsn(opts ...sql.OrderTermOption) OrderOption
- func ByGeo(opts ...sql.OrderTermOption) OrderOption
- func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByGroupID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMappingID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
- func ByProvider(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByToken(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the database type in the database. Label = "database" // 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" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldDeletedBy holds the string denoting the deleted_by field in the database. FieldDeletedBy = "deleted_by" // FieldMappingID holds the string denoting the mapping_id field in the database. FieldMappingID = "mapping_id" // FieldOrganizationID holds the string denoting the organization_id field in the database. FieldOrganizationID = "organization_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldGeo holds the string denoting the geo field in the database. FieldGeo = "geo" // FieldDsn holds the string denoting the dsn field in the database. FieldDsn = "dsn" // FieldGroupID holds the string denoting the group_id field in the database. FieldGroupID = "group_id" // FieldToken holds the string denoting the token field in the database. FieldToken = "token" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldProvider holds the string denoting the provider field in the database. FieldProvider = "provider" // EdgeGroup holds the string denoting the group edge name in mutations. EdgeGroup = "group" // Table holds the table name of the database in the database. Table = "databases" // GroupTable is the table that holds the group relation/edge. GroupTable = "databases" // GroupInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupInverseTable = "groups" // GroupColumn is the table column denoting the group relation/edge. GroupColumn = "group_id" )
const DefaultProvider enums.DatabaseProvider = "LOCAL"
const DefaultStatus enums.DatabaseStatus = "CREATING"
Variables ¶
var ( Hooks [3]ent.Hook // 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 // DefaultMappingID holds the default value on creation for the "mapping_id" field. DefaultMappingID func() string // OrganizationIDValidator is a validator for the "organization_id" field. It is called by the builders before save. OrganizationIDValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DsnValidator is a validator for the "dsn" field. It is called by the builders before save. DsnValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/theopenlane/dbx/internal/ent/generated/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldDeletedAt, FieldDeletedBy, FieldMappingID, FieldOrganizationID, FieldName, FieldGeo, FieldDsn, FieldGroupID, FieldToken, FieldStatus, FieldProvider, }
Columns holds all SQL columns for database fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func DsnContains ¶
DsnContains applies the Contains predicate on the "dsn" field.
func DsnContainsFold ¶
DsnContainsFold applies the ContainsFold predicate on the "dsn" field.
func DsnEqualFold ¶
DsnEqualFold applies the EqualFold predicate on the "dsn" field.
func DsnHasPrefix ¶
DsnHasPrefix applies the HasPrefix predicate on the "dsn" field.
func DsnHasSuffix ¶
DsnHasSuffix applies the HasSuffix predicate on the "dsn" field.
func GeoContains ¶
GeoContains applies the Contains predicate on the "geo" field.
func GeoContainsFold ¶
GeoContainsFold applies the ContainsFold predicate on the "geo" field.
func GeoEqualFold ¶
GeoEqualFold applies the EqualFold predicate on the "geo" field.
func GeoHasPrefix ¶
GeoHasPrefix applies the HasPrefix predicate on the "geo" field.
func GeoHasSuffix ¶
GeoHasSuffix applies the HasSuffix predicate on the "geo" field.
func GroupID ¶
GroupID applies equality check predicate on the "group_id" field. It's identical to GroupIDEQ.
func GroupIDContains ¶
GroupIDContains applies the Contains predicate on the "group_id" field.
func GroupIDContainsFold ¶
GroupIDContainsFold applies the ContainsFold predicate on the "group_id" field.
func GroupIDEqualFold ¶
GroupIDEqualFold applies the EqualFold predicate on the "group_id" field.
func GroupIDGTE ¶
GroupIDGTE applies the GTE predicate on the "group_id" field.
func GroupIDHasPrefix ¶
GroupIDHasPrefix applies the HasPrefix predicate on the "group_id" field.
func GroupIDHasSuffix ¶
GroupIDHasSuffix applies the HasSuffix predicate on the "group_id" field.
func GroupIDLTE ¶
GroupIDLTE applies the LTE predicate on the "group_id" field.
func GroupIDNEQ ¶
GroupIDNEQ applies the NEQ predicate on the "group_id" field.
func GroupIDNotIn ¶
GroupIDNotIn applies the NotIn predicate on the "group_id" field.
func HasGroupWith ¶
HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func MappingID ¶
MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.
func MappingIDContains ¶
MappingIDContains applies the Contains predicate on the "mapping_id" field.
func MappingIDContainsFold ¶
MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.
func MappingIDEQ ¶
MappingIDEQ applies the EQ predicate on the "mapping_id" field.
func MappingIDEqualFold ¶
MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.
func MappingIDGT ¶
MappingIDGT applies the GT predicate on the "mapping_id" field.
func MappingIDGTE ¶
MappingIDGTE applies the GTE predicate on the "mapping_id" field.
func MappingIDHasPrefix ¶
MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.
func MappingIDHasSuffix ¶
MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.
func MappingIDIn ¶
MappingIDIn applies the In predicate on the "mapping_id" field.
func MappingIDLT ¶
MappingIDLT applies the LT predicate on the "mapping_id" field.
func MappingIDLTE ¶
MappingIDLTE applies the LTE predicate on the "mapping_id" field.
func MappingIDNEQ ¶
MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.
func MappingIDNotIn ¶
MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func OrganizationID ¶
OrganizationID applies equality check predicate on the "organization_id" field. It's identical to OrganizationIDEQ.
func OrganizationIDContains ¶
OrganizationIDContains applies the Contains predicate on the "organization_id" field.
func OrganizationIDContainsFold ¶
OrganizationIDContainsFold applies the ContainsFold predicate on the "organization_id" field.
func OrganizationIDEQ ¶
OrganizationIDEQ applies the EQ predicate on the "organization_id" field.
func OrganizationIDEqualFold ¶
OrganizationIDEqualFold applies the EqualFold predicate on the "organization_id" field.
func OrganizationIDGT ¶
OrganizationIDGT applies the GT predicate on the "organization_id" field.
func OrganizationIDGTE ¶
OrganizationIDGTE applies the GTE predicate on the "organization_id" field.
func OrganizationIDHasPrefix ¶
OrganizationIDHasPrefix applies the HasPrefix predicate on the "organization_id" field.
func OrganizationIDHasSuffix ¶
OrganizationIDHasSuffix applies the HasSuffix predicate on the "organization_id" field.
func OrganizationIDIn ¶
OrganizationIDIn applies the In predicate on the "organization_id" field.
func OrganizationIDLT ¶
OrganizationIDLT applies the LT predicate on the "organization_id" field.
func OrganizationIDLTE ¶
OrganizationIDLTE applies the LTE predicate on the "organization_id" field.
func OrganizationIDNEQ ¶
OrganizationIDNEQ applies the NEQ predicate on the "organization_id" field.
func OrganizationIDNotIn ¶
OrganizationIDNotIn applies the NotIn predicate on the "organization_id" field.
func ProviderEQ ¶
func ProviderEQ(v enums.DatabaseProvider) predicate.Database
ProviderEQ applies the EQ predicate on the "provider" field.
func ProviderIn ¶
func ProviderIn(vs ...enums.DatabaseProvider) predicate.Database
ProviderIn applies the In predicate on the "provider" field.
func ProviderNEQ ¶
func ProviderNEQ(v enums.DatabaseProvider) predicate.Database
ProviderNEQ applies the NEQ predicate on the "provider" field.
func ProviderNotIn ¶
func ProviderNotIn(vs ...enums.DatabaseProvider) predicate.Database
ProviderNotIn applies the NotIn predicate on the "provider" field.
func ProviderValidator ¶
func ProviderValidator(pr enums.DatabaseProvider) error
ProviderValidator is a validator for the "provider" field enum values. It is called by the builders before save.
func StatusEQ ¶
func StatusEQ(v enums.DatabaseStatus) predicate.Database
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...enums.DatabaseStatus) predicate.Database
StatusIn applies the In predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v enums.DatabaseStatus) predicate.Database
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...enums.DatabaseStatus) predicate.Database
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
func StatusValidator(s enums.DatabaseStatus) error
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func Token ¶
Token applies equality check predicate on the "token" field. It's identical to TokenEQ.
func TokenContains ¶
TokenContains applies the Contains predicate on the "token" field.
func TokenContainsFold ¶
TokenContainsFold applies the ContainsFold predicate on the "token" field.
func TokenEqualFold ¶
TokenEqualFold applies the EqualFold predicate on the "token" field.
func TokenHasPrefix ¶
TokenHasPrefix applies the HasPrefix predicate on the "token" field.
func TokenHasSuffix ¶
TokenHasSuffix applies the HasSuffix predicate on the "token" field.
func TokenIsNil ¶
TokenIsNil applies the IsNil predicate on the "token" field.
func TokenNotIn ¶
TokenNotIn applies the NotIn predicate on the "token" field.
func TokenNotNil ¶
TokenNotNil applies the NotNil predicate on the "token" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Database queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDeletedBy ¶
func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
ByDeletedBy orders the results by the deleted_by field.
func ByDsn ¶
func ByDsn(opts ...sql.OrderTermOption) OrderOption
ByDsn orders the results by the dsn field.
func ByGeo ¶
func ByGeo(opts ...sql.OrderTermOption) OrderOption
ByGeo orders the results by the geo field.
func ByGroupField ¶
func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
ByGroupField orders the results by group field.
func ByGroupID ¶
func ByGroupID(opts ...sql.OrderTermOption) OrderOption
ByGroupID orders the results by the group_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMappingID ¶
func ByMappingID(opts ...sql.OrderTermOption) OrderOption
ByMappingID orders the results by the mapping_id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOrganizationID ¶
func ByOrganizationID(opts ...sql.OrderTermOption) OrderOption
ByOrganizationID orders the results by the organization_id field.
func ByProvider ¶
func ByProvider(opts ...sql.OrderTermOption) OrderOption
ByProvider orders the results by the provider field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByToken ¶
func ByToken(opts ...sql.OrderTermOption) OrderOption
ByToken orders the results by the token field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedBy ¶
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by field.