Documentation
¶
Index ¶
- Constants
- Variables
- func Address(v string) predicate.Company
- func AddressContains(v string) predicate.Company
- func AddressContainsFold(v string) predicate.Company
- func AddressEQ(v string) predicate.Company
- func AddressEqualFold(v string) predicate.Company
- func AddressGT(v string) predicate.Company
- func AddressGTE(v string) predicate.Company
- func AddressHasPrefix(v string) predicate.Company
- func AddressHasSuffix(v string) predicate.Company
- func AddressIn(vs ...string) predicate.Company
- func AddressIsNil() predicate.Company
- func AddressLT(v string) predicate.Company
- func AddressLTE(v string) predicate.Company
- func AddressNEQ(v string) predicate.Company
- func AddressNotIn(vs ...string) predicate.Company
- func AddressNotNil() predicate.Company
- func And(predicates ...predicate.Company) predicate.Company
- func Code(v int32) predicate.Company
- func CodeEQ(v int32) predicate.Company
- func CodeGT(v int32) predicate.Company
- func CodeGTE(v int32) predicate.Company
- func CodeIn(vs ...int32) predicate.Company
- func CodeLT(v int32) predicate.Company
- func CodeLTE(v int32) predicate.Company
- func CodeNEQ(v int32) predicate.Company
- func CodeNotIn(vs ...int32) predicate.Company
- func CreatedAt(v time.Time) predicate.Company
- func CreatedAtEQ(v time.Time) predicate.Company
- func CreatedAtGT(v time.Time) predicate.Company
- func CreatedAtGTE(v time.Time) predicate.Company
- func CreatedAtIn(vs ...time.Time) predicate.Company
- func CreatedAtLT(v time.Time) predicate.Company
- func CreatedAtLTE(v time.Time) predicate.Company
- func CreatedAtNEQ(v time.Time) predicate.Company
- func CreatedAtNotIn(vs ...time.Time) predicate.Company
- func HasDevices() predicate.Company
- func HasDevicesWith(preds ...predicate.Device) predicate.Company
- func HasMembers() predicate.Company
- func HasMembersWith(preds ...predicate.Member) predicate.Company
- func ID(id uint64) predicate.Company
- func IDEQ(id uint64) predicate.Company
- func IDGT(id uint64) predicate.Company
- func IDGTE(id uint64) predicate.Company
- func IDIn(ids ...uint64) predicate.Company
- func IDLT(id uint64) predicate.Company
- func IDLTE(id uint64) predicate.Company
- func IDNEQ(id uint64) predicate.Company
- func IDNotIn(ids ...uint64) predicate.Company
- func Nickname(v string) predicate.Company
- func NicknameContains(v string) predicate.Company
- func NicknameContainsFold(v string) predicate.Company
- func NicknameEQ(v string) predicate.Company
- func NicknameEqualFold(v string) predicate.Company
- func NicknameGT(v string) predicate.Company
- func NicknameGTE(v string) predicate.Company
- func NicknameHasPrefix(v string) predicate.Company
- func NicknameHasSuffix(v string) predicate.Company
- func NicknameIn(vs ...string) predicate.Company
- func NicknameLT(v string) predicate.Company
- func NicknameLTE(v string) predicate.Company
- func NicknameNEQ(v string) predicate.Company
- func NicknameNotIn(vs ...string) predicate.Company
- func Not(p predicate.Company) predicate.Company
- func Or(predicates ...predicate.Company) predicate.Company
- func Remark(v string) predicate.Company
- func RemarkContains(v string) predicate.Company
- func RemarkContainsFold(v string) predicate.Company
- func RemarkEQ(v string) predicate.Company
- func RemarkEqualFold(v string) predicate.Company
- func RemarkGT(v string) predicate.Company
- func RemarkGTE(v string) predicate.Company
- func RemarkHasPrefix(v string) predicate.Company
- func RemarkHasSuffix(v string) predicate.Company
- func RemarkIn(vs ...string) predicate.Company
- func RemarkIsNil() predicate.Company
- func RemarkLT(v string) predicate.Company
- func RemarkLTE(v string) predicate.Company
- func RemarkNEQ(v string) predicate.Company
- func RemarkNotIn(vs ...string) predicate.Company
- func RemarkNotNil() predicate.Company
- func Sort(v uint32) predicate.Company
- func SortEQ(v uint32) predicate.Company
- func SortGT(v uint32) predicate.Company
- func SortGTE(v uint32) predicate.Company
- func SortIn(vs ...uint32) predicate.Company
- func SortLT(v uint32) predicate.Company
- func SortLTE(v uint32) predicate.Company
- func SortNEQ(v uint32) predicate.Company
- func SortNotIn(vs ...uint32) predicate.Company
- func Status(v uint8) predicate.Company
- func StatusEQ(v uint8) predicate.Company
- func StatusGT(v uint8) predicate.Company
- func StatusGTE(v uint8) predicate.Company
- func StatusIn(vs ...uint8) predicate.Company
- func StatusIsNil() predicate.Company
- func StatusLT(v uint8) predicate.Company
- func StatusLTE(v uint8) predicate.Company
- func StatusNEQ(v uint8) predicate.Company
- func StatusNotIn(vs ...uint8) predicate.Company
- func StatusNotNil() predicate.Company
- func UpdatedAt(v time.Time) predicate.Company
- func UpdatedAtEQ(v time.Time) predicate.Company
- func UpdatedAtGT(v time.Time) predicate.Company
- func UpdatedAtGTE(v time.Time) predicate.Company
- func UpdatedAtIn(vs ...time.Time) predicate.Company
- func UpdatedAtLT(v time.Time) predicate.Company
- func UpdatedAtLTE(v time.Time) predicate.Company
- func UpdatedAtNEQ(v time.Time) predicate.Company
- func UpdatedAtNotIn(vs ...time.Time) predicate.Company
- func ValidColumn(column string) bool
- type OrderOption
- func ByAddress(opts ...sql.OrderTermOption) OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDevices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDevicesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMembersCount(opts ...sql.OrderTermOption) OrderOption
- func ByNickname(opts ...sql.OrderTermOption) OrderOption
- func ByRemark(opts ...sql.OrderTermOption) OrderOption
- func BySort(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the company type in the database. Label = "company" // 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" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldSort holds the string denoting the sort field in the database. FieldSort = "sort" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldNickname holds the string denoting the nickname field in the database. FieldNickname = "nickname" // FieldAddress holds the string denoting the address field in the database. FieldAddress = "address" // FieldRemark holds the string denoting the remark field in the database. FieldRemark = "remark" // EdgeDevices holds the string denoting the devices edge name in mutations. EdgeDevices = "devices" // EdgeMembers holds the string denoting the members edge name in mutations. EdgeMembers = "members" // Table holds the table name of the company in the database. Table = "client_companies" // DevicesTable is the table that holds the devices relation/edge. The primary key declared below. DevicesTable = "company_devices" // DevicesInverseTable is the table name for the Device entity. // It exists in this package in order to avoid circular dependency with the "device" package. DevicesInverseTable = "equip_devices" // MembersTable is the table that holds the members relation/edge. MembersTable = "client_members" // MembersInverseTable is the table name for the Member entity. // It exists in this package in order to avoid circular dependency with the "member" package. MembersInverseTable = "client_members" // MembersColumn is the table column denoting the members relation/edge. MembersColumn = "company_members" )
Variables ¶
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 // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus uint8 // DefaultSort holds the default value on creation for the "sort" field. DefaultSort uint32 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldStatus, FieldSort, FieldCode, FieldNickname, FieldAddress, FieldRemark, }
Columns holds all SQL columns for company fields.
var ( // DevicesPrimaryKey and DevicesColumn2 are the table columns denoting the // primary key for the devices relation (M2M). DevicesPrimaryKey = []string{"company_id", "device_id"} )
Functions ¶
func Address ¶
Address applies equality check predicate on the "address" field. It's identical to AddressEQ.
func AddressContains ¶
AddressContains applies the Contains predicate on the "address" field.
func AddressContainsFold ¶
AddressContainsFold applies the ContainsFold predicate on the "address" field.
func AddressEqualFold ¶
AddressEqualFold applies the EqualFold predicate on the "address" field.
func AddressGTE ¶
AddressGTE applies the GTE predicate on the "address" field.
func AddressHasPrefix ¶
AddressHasPrefix applies the HasPrefix predicate on the "address" field.
func AddressHasSuffix ¶
AddressHasSuffix applies the HasSuffix predicate on the "address" field.
func AddressIsNil ¶
AddressIsNil applies the IsNil predicate on the "address" field.
func AddressLTE ¶
AddressLTE applies the LTE predicate on the "address" field.
func AddressNEQ ¶
AddressNEQ applies the NEQ predicate on the "address" field.
func AddressNotIn ¶
AddressNotIn applies the NotIn predicate on the "address" field.
func AddressNotNil ¶
AddressNotNil applies the NotNil predicate on the "address" field.
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 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 HasDevices ¶
HasDevices applies the HasEdge predicate on the "devices" edge.
func HasDevicesWith ¶
HasDevicesWith applies the HasEdge predicate on the "devices" edge with a given conditions (other predicates).
func HasMembers ¶
HasMembers applies the HasEdge predicate on the "members" edge.
func HasMembersWith ¶
HasMembersWith applies the HasEdge predicate on the "members" edge with a given conditions (other predicates).
func Nickname ¶
Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
func NicknameContains ¶
NicknameContains applies the Contains predicate on the "nickname" field.
func NicknameContainsFold ¶
NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
func NicknameEQ ¶
NicknameEQ applies the EQ predicate on the "nickname" field.
func NicknameEqualFold ¶
NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
func NicknameGT ¶
NicknameGT applies the GT predicate on the "nickname" field.
func NicknameGTE ¶
NicknameGTE applies the GTE predicate on the "nickname" field.
func NicknameHasPrefix ¶
NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
func NicknameHasSuffix ¶
NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
func NicknameIn ¶
NicknameIn applies the In predicate on the "nickname" field.
func NicknameLT ¶
NicknameLT applies the LT predicate on the "nickname" field.
func NicknameLTE ¶
NicknameLTE applies the LTE predicate on the "nickname" field.
func NicknameNEQ ¶
NicknameNEQ applies the NEQ predicate on the "nickname" field.
func NicknameNotIn ¶
NicknameNotIn applies the NotIn predicate on the "nickname" field.
func Remark ¶
Remark applies equality check predicate on the "remark" field. It's identical to RemarkEQ.
func RemarkContains ¶
RemarkContains applies the Contains predicate on the "remark" field.
func RemarkContainsFold ¶
RemarkContainsFold applies the ContainsFold predicate on the "remark" field.
func RemarkEqualFold ¶
RemarkEqualFold applies the EqualFold predicate on the "remark" field.
func RemarkHasPrefix ¶
RemarkHasPrefix applies the HasPrefix predicate on the "remark" field.
func RemarkHasSuffix ¶
RemarkHasSuffix applies the HasSuffix predicate on the "remark" field.
func RemarkIsNil ¶
RemarkIsNil applies the IsNil predicate on the "remark" field.
func RemarkNotIn ¶
RemarkNotIn applies the NotIn predicate on the "remark" field.
func RemarkNotNil ¶
RemarkNotNil applies the NotNil predicate on the "remark" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" 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 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Company queries.
func ByAddress ¶
func ByAddress(opts ...sql.OrderTermOption) OrderOption
ByAddress orders the results by the address field.
func ByCode ¶
func ByCode(opts ...sql.OrderTermOption) OrderOption
ByCode orders the results by the code field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDevices ¶
func ByDevices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDevices orders the results by devices terms.
func ByDevicesCount ¶
func ByDevicesCount(opts ...sql.OrderTermOption) OrderOption
ByDevicesCount orders the results by devices count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMembers ¶
func ByMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMembers orders the results by members terms.
func ByMembersCount ¶
func ByMembersCount(opts ...sql.OrderTermOption) OrderOption
ByMembersCount orders the results by members count.
func ByNickname ¶
func ByNickname(opts ...sql.OrderTermOption) OrderOption
ByNickname orders the results by the nickname field.
func ByRemark ¶
func ByRemark(opts ...sql.OrderTermOption) OrderOption
ByRemark orders the results by the remark field.
func BySort ¶
func BySort(opts ...sql.OrderTermOption) OrderOption
BySort orders the results by the sort field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.