Documentation ¶
Index ¶
- type APITokenFunc
- type DocumentDataFunc
- type DocumentDataHistoryFunc
- type EmailVerificationTokenFunc
- type EntitlementFunc
- type EntitlementHistoryFunc
- type EntitlementPlanFeatureFunc
- type EntitlementPlanFeatureHistoryFunc
- type EntitlementPlanFunc
- type EntitlementPlanHistoryFunc
- type EventFunc
- type EventHistoryFunc
- type FeatureFunc
- type FeatureHistoryFunc
- type FileFunc
- type FileHistoryFunc
- type Func
- type GroupFunc
- type GroupHistoryFunc
- type GroupMembershipFunc
- type GroupMembershipHistoryFunc
- type GroupSettingFunc
- type GroupSettingHistoryFunc
- type HushFunc
- type HushHistoryFunc
- type IntegrationFunc
- type IntegrationHistoryFunc
- type InviteFunc
- type OauthProviderFunc
- type OauthProviderHistoryFunc
- type OhAuthTooTokenFunc
- type OrgMembershipFunc
- type OrgMembershipHistoryFunc
- type OrganizationFunc
- type OrganizationHistoryFunc
- type OrganizationSettingFunc
- type OrganizationSettingHistoryFunc
- type PasswordResetTokenFunc
- type PersonalAccessTokenFunc
- type Query
- type SubscriberFunc
- type TFASettingFunc
- type TemplateFunc
- type TemplateHistoryFunc
- type TraverseAPIToken
- type TraverseDocumentData
- type TraverseDocumentDataHistory
- type TraverseEmailVerificationToken
- type TraverseEntitlement
- type TraverseEntitlementHistory
- type TraverseEntitlementPlan
- type TraverseEntitlementPlanFeature
- type TraverseEntitlementPlanFeatureHistory
- type TraverseEntitlementPlanHistory
- type TraverseEvent
- type TraverseEventHistory
- type TraverseFeature
- type TraverseFeatureHistory
- type TraverseFile
- type TraverseFileHistory
- type TraverseFunc
- type TraverseGroup
- type TraverseGroupHistory
- type TraverseGroupMembership
- type TraverseGroupMembershipHistory
- type TraverseGroupSetting
- type TraverseGroupSettingHistory
- type TraverseHush
- type TraverseHushHistory
- type TraverseIntegration
- type TraverseIntegrationHistory
- type TraverseInvite
- type TraverseOauthProvider
- type TraverseOauthProviderHistory
- type TraverseOhAuthTooToken
- type TraverseOrgMembership
- type TraverseOrgMembershipHistory
- type TraverseOrganization
- type TraverseOrganizationHistory
- type TraverseOrganizationSetting
- type TraverseOrganizationSettingHistory
- type TraversePasswordResetToken
- type TraversePersonalAccessToken
- type TraverseSubscriber
- type TraverseTFASetting
- type TraverseTemplate
- type TraverseTemplateHistory
- type TraverseUser
- type TraverseUserHistory
- type TraverseUserSetting
- type TraverseUserSettingHistory
- type TraverseWebauthn
- type TraverseWebhook
- type TraverseWebhookHistory
- type UserFunc
- type UserHistoryFunc
- type UserSettingFunc
- type UserSettingHistoryFunc
- type WebauthnFunc
- type WebhookFunc
- type WebhookHistoryFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APITokenFunc ¶ added in v0.5.0
The APITokenFunc type is an adapter to allow the use of ordinary function as a Querier.
type DocumentDataFunc ¶ added in v0.4.4
The DocumentDataFunc type is an adapter to allow the use of ordinary function as a Querier.
type DocumentDataHistoryFunc ¶ added in v0.4.5
type DocumentDataHistoryFunc func(context.Context, *generated.DocumentDataHistoryQuery) (generated.Value, error)
The DocumentDataHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type EmailVerificationTokenFunc ¶ added in v0.2.2
type EmailVerificationTokenFunc func(context.Context, *generated.EmailVerificationTokenQuery) (generated.Value, error)
The EmailVerificationTokenFunc type is an adapter to allow the use of ordinary function as a Querier.
type EntitlementFunc ¶
The EntitlementFunc type is an adapter to allow the use of ordinary function as a Querier.
type EntitlementHistoryFunc ¶ added in v0.4.5
type EntitlementHistoryFunc func(context.Context, *generated.EntitlementHistoryQuery) (generated.Value, error)
The EntitlementHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type EntitlementPlanFeatureFunc ¶ added in v0.7.0
type EntitlementPlanFeatureFunc func(context.Context, *generated.EntitlementPlanFeatureQuery) (generated.Value, error)
The EntitlementPlanFeatureFunc type is an adapter to allow the use of ordinary function as a Querier.
type EntitlementPlanFeatureHistoryFunc ¶ added in v0.7.0
type EntitlementPlanFeatureHistoryFunc func(context.Context, *generated.EntitlementPlanFeatureHistoryQuery) (generated.Value, error)
The EntitlementPlanFeatureHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type EntitlementPlanFunc ¶ added in v0.7.0
type EntitlementPlanFunc func(context.Context, *generated.EntitlementPlanQuery) (generated.Value, error)
The EntitlementPlanFunc type is an adapter to allow the use of ordinary function as a Querier.
type EntitlementPlanHistoryFunc ¶ added in v0.7.0
type EntitlementPlanHistoryFunc func(context.Context, *generated.EntitlementPlanHistoryQuery) (generated.Value, error)
The EntitlementPlanHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type EventFunc ¶ added in v0.5.0
The EventFunc type is an adapter to allow the use of ordinary function as a Querier.
type EventHistoryFunc ¶ added in v0.5.0
The EventHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type FeatureFunc ¶ added in v0.5.0
The FeatureFunc type is an adapter to allow the use of ordinary function as a Querier.
type FeatureHistoryFunc ¶ added in v0.5.0
type FeatureHistoryFunc func(context.Context, *generated.FeatureHistoryQuery) (generated.Value, error)
The FeatureHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type FileFunc ¶ added in v0.5.0
The FileFunc type is an adapter to allow the use of ordinary function as a Querier.
type FileHistoryFunc ¶ added in v0.5.0
The FileHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type Func ¶
The Func type is an adapter that allows ordinary functions to be used as interceptors. Unlike traversal functions, interceptors are skipped during graph traversals. Note that the implementation of Func is different from the one defined in entgo.io/ent.InterceptFunc.
type GroupFunc ¶
The GroupFunc type is an adapter to allow the use of ordinary function as a Querier.
type GroupHistoryFunc ¶ added in v0.4.5
The GroupHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type GroupMembershipFunc ¶ added in v0.2.4
type GroupMembershipFunc func(context.Context, *generated.GroupMembershipQuery) (generated.Value, error)
The GroupMembershipFunc type is an adapter to allow the use of ordinary function as a Querier.
type GroupMembershipHistoryFunc ¶ added in v0.4.5
type GroupMembershipHistoryFunc func(context.Context, *generated.GroupMembershipHistoryQuery) (generated.Value, error)
The GroupMembershipHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type GroupSettingFunc ¶
The GroupSettingFunc type is an adapter to allow the use of ordinary function as a Querier.
type GroupSettingHistoryFunc ¶ added in v0.4.5
type GroupSettingHistoryFunc func(context.Context, *generated.GroupSettingHistoryQuery) (generated.Value, error)
The GroupSettingHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type HushFunc ¶ added in v0.5.0
The HushFunc type is an adapter to allow the use of ordinary function as a Querier.
type HushHistoryFunc ¶ added in v0.5.0
The HushHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type IntegrationFunc ¶
The IntegrationFunc type is an adapter to allow the use of ordinary function as a Querier.
type IntegrationHistoryFunc ¶ added in v0.4.5
type IntegrationHistoryFunc func(context.Context, *generated.IntegrationHistoryQuery) (generated.Value, error)
The IntegrationHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type InviteFunc ¶ added in v0.2.6
The InviteFunc type is an adapter to allow the use of ordinary function as a Querier.
type OauthProviderFunc ¶
type OauthProviderFunc func(context.Context, *generated.OauthProviderQuery) (generated.Value, error)
The OauthProviderFunc type is an adapter to allow the use of ordinary function as a Querier.
type OauthProviderHistoryFunc ¶ added in v0.4.5
type OauthProviderHistoryFunc func(context.Context, *generated.OauthProviderHistoryQuery) (generated.Value, error)
The OauthProviderHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type OhAuthTooTokenFunc ¶
type OhAuthTooTokenFunc func(context.Context, *generated.OhAuthTooTokenQuery) (generated.Value, error)
The OhAuthTooTokenFunc type is an adapter to allow the use of ordinary function as a Querier.
type OrgMembershipFunc ¶ added in v0.2.4
type OrgMembershipFunc func(context.Context, *generated.OrgMembershipQuery) (generated.Value, error)
The OrgMembershipFunc type is an adapter to allow the use of ordinary function as a Querier.
type OrgMembershipHistoryFunc ¶ added in v0.4.5
type OrgMembershipHistoryFunc func(context.Context, *generated.OrgMembershipHistoryQuery) (generated.Value, error)
The OrgMembershipHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type OrganizationFunc ¶
The OrganizationFunc type is an adapter to allow the use of ordinary function as a Querier.
type OrganizationHistoryFunc ¶ added in v0.4.3
type OrganizationHistoryFunc func(context.Context, *generated.OrganizationHistoryQuery) (generated.Value, error)
The OrganizationHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type OrganizationSettingFunc ¶
type OrganizationSettingFunc func(context.Context, *generated.OrganizationSettingQuery) (generated.Value, error)
The OrganizationSettingFunc type is an adapter to allow the use of ordinary function as a Querier.
type OrganizationSettingHistoryFunc ¶ added in v0.4.3
type OrganizationSettingHistoryFunc func(context.Context, *generated.OrganizationSettingHistoryQuery) (generated.Value, error)
The OrganizationSettingHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type PasswordResetTokenFunc ¶ added in v0.2.3
type PasswordResetTokenFunc func(context.Context, *generated.PasswordResetTokenQuery) (generated.Value, error)
The PasswordResetTokenFunc type is an adapter to allow the use of ordinary function as a Querier.
type PersonalAccessTokenFunc ¶
type PersonalAccessTokenFunc func(context.Context, *generated.PersonalAccessTokenQuery) (generated.Value, error)
The PersonalAccessTokenFunc type is an adapter to allow the use of ordinary function as a Querier.
type Query ¶
type Query interface { // Type returns the string representation of the query type. Type() string // Limit the number of records to be returned by this query. Limit(int) // Offset to start from. Offset(int) // Unique configures the query builder to filter duplicate records. Unique(bool) // Order specifies how the records should be ordered. Order(...func(*sql.Selector)) // WhereP appends storage-level predicates to the query builder. Using this method, users // can use type-assertion to append predicates that do not depend on any generated package. WhereP(...func(*sql.Selector)) }
The Query interface represents an operation that queries a graph. By using this interface, users can write generic code that manipulates query builders of different types.
type SubscriberFunc ¶ added in v0.3.6
The SubscriberFunc type is an adapter to allow the use of ordinary function as a Querier.
type TFASettingFunc ¶ added in v0.4.4
The TFASettingFunc type is an adapter to allow the use of ordinary function as a Querier.
type TemplateFunc ¶ added in v0.4.3
The TemplateFunc type is an adapter to allow the use of ordinary function as a Querier.
type TemplateHistoryFunc ¶ added in v0.4.5
type TemplateHistoryFunc func(context.Context, *generated.TemplateHistoryQuery) (generated.Value, error)
The TemplateHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type TraverseAPIToken ¶ added in v0.5.0
type TraverseAPIToken func(context.Context, *generated.APITokenQuery) error
The TraverseAPIToken type is an adapter to allow the use of ordinary function as Traverser.
type TraverseDocumentData ¶ added in v0.4.4
type TraverseDocumentData func(context.Context, *generated.DocumentDataQuery) error
The TraverseDocumentData type is an adapter to allow the use of ordinary function as Traverser.
type TraverseDocumentDataHistory ¶ added in v0.4.5
type TraverseDocumentDataHistory func(context.Context, *generated.DocumentDataHistoryQuery) error
The TraverseDocumentDataHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseEmailVerificationToken ¶ added in v0.2.2
type TraverseEmailVerificationToken func(context.Context, *generated.EmailVerificationTokenQuery) error
The TraverseEmailVerificationToken type is an adapter to allow the use of ordinary function as Traverser.
type TraverseEntitlement ¶
type TraverseEntitlement func(context.Context, *generated.EntitlementQuery) error
The TraverseEntitlement type is an adapter to allow the use of ordinary function as Traverser.
type TraverseEntitlementHistory ¶ added in v0.4.5
type TraverseEntitlementHistory func(context.Context, *generated.EntitlementHistoryQuery) error
The TraverseEntitlementHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseEntitlementPlan ¶ added in v0.7.0
type TraverseEntitlementPlan func(context.Context, *generated.EntitlementPlanQuery) error
The TraverseEntitlementPlan type is an adapter to allow the use of ordinary function as Traverser.
type TraverseEntitlementPlanFeature ¶ added in v0.7.0
type TraverseEntitlementPlanFeature func(context.Context, *generated.EntitlementPlanFeatureQuery) error
The TraverseEntitlementPlanFeature type is an adapter to allow the use of ordinary function as Traverser.
type TraverseEntitlementPlanFeatureHistory ¶ added in v0.7.0
type TraverseEntitlementPlanFeatureHistory func(context.Context, *generated.EntitlementPlanFeatureHistoryQuery) error
The TraverseEntitlementPlanFeatureHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseEntitlementPlanHistory ¶ added in v0.7.0
type TraverseEntitlementPlanHistory func(context.Context, *generated.EntitlementPlanHistoryQuery) error
The TraverseEntitlementPlanHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseEvent ¶ added in v0.5.0
type TraverseEvent func(context.Context, *generated.EventQuery) error
The TraverseEvent type is an adapter to allow the use of ordinary function as Traverser.
type TraverseEventHistory ¶ added in v0.5.0
type TraverseEventHistory func(context.Context, *generated.EventHistoryQuery) error
The TraverseEventHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseFeature ¶ added in v0.5.0
type TraverseFeature func(context.Context, *generated.FeatureQuery) error
The TraverseFeature type is an adapter to allow the use of ordinary function as Traverser.
type TraverseFeatureHistory ¶ added in v0.5.0
type TraverseFeatureHistory func(context.Context, *generated.FeatureHistoryQuery) error
The TraverseFeatureHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseFile ¶ added in v0.5.0
The TraverseFile type is an adapter to allow the use of ordinary function as Traverser.
type TraverseFileHistory ¶ added in v0.5.0
type TraverseFileHistory func(context.Context, *generated.FileHistoryQuery) error
The TraverseFileHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseFunc ¶
The TraverseFunc type is an adapter to allow the use of ordinary function as Traverser. If f is a function with the appropriate signature, TraverseFunc(f) is a Traverser that calls f.
type TraverseGroup ¶
type TraverseGroup func(context.Context, *generated.GroupQuery) error
The TraverseGroup type is an adapter to allow the use of ordinary function as Traverser.
type TraverseGroupHistory ¶ added in v0.4.5
type TraverseGroupHistory func(context.Context, *generated.GroupHistoryQuery) error
The TraverseGroupHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseGroupMembership ¶ added in v0.2.4
type TraverseGroupMembership func(context.Context, *generated.GroupMembershipQuery) error
The TraverseGroupMembership type is an adapter to allow the use of ordinary function as Traverser.
type TraverseGroupMembershipHistory ¶ added in v0.4.5
type TraverseGroupMembershipHistory func(context.Context, *generated.GroupMembershipHistoryQuery) error
The TraverseGroupMembershipHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseGroupSetting ¶
type TraverseGroupSetting func(context.Context, *generated.GroupSettingQuery) error
The TraverseGroupSetting type is an adapter to allow the use of ordinary function as Traverser.
type TraverseGroupSettingHistory ¶ added in v0.4.5
type TraverseGroupSettingHistory func(context.Context, *generated.GroupSettingHistoryQuery) error
The TraverseGroupSettingHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseHush ¶ added in v0.5.0
The TraverseHush type is an adapter to allow the use of ordinary function as Traverser.
type TraverseHushHistory ¶ added in v0.5.0
type TraverseHushHistory func(context.Context, *generated.HushHistoryQuery) error
The TraverseHushHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseIntegration ¶
type TraverseIntegration func(context.Context, *generated.IntegrationQuery) error
The TraverseIntegration type is an adapter to allow the use of ordinary function as Traverser.
type TraverseIntegrationHistory ¶ added in v0.4.5
type TraverseIntegrationHistory func(context.Context, *generated.IntegrationHistoryQuery) error
The TraverseIntegrationHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseInvite ¶ added in v0.2.6
type TraverseInvite func(context.Context, *generated.InviteQuery) error
The TraverseInvite type is an adapter to allow the use of ordinary function as Traverser.
type TraverseOauthProvider ¶
type TraverseOauthProvider func(context.Context, *generated.OauthProviderQuery) error
The TraverseOauthProvider type is an adapter to allow the use of ordinary function as Traverser.
type TraverseOauthProviderHistory ¶ added in v0.4.5
type TraverseOauthProviderHistory func(context.Context, *generated.OauthProviderHistoryQuery) error
The TraverseOauthProviderHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseOhAuthTooToken ¶
type TraverseOhAuthTooToken func(context.Context, *generated.OhAuthTooTokenQuery) error
The TraverseOhAuthTooToken type is an adapter to allow the use of ordinary function as Traverser.
type TraverseOrgMembership ¶ added in v0.2.4
type TraverseOrgMembership func(context.Context, *generated.OrgMembershipQuery) error
The TraverseOrgMembership type is an adapter to allow the use of ordinary function as Traverser.
type TraverseOrgMembershipHistory ¶ added in v0.4.5
type TraverseOrgMembershipHistory func(context.Context, *generated.OrgMembershipHistoryQuery) error
The TraverseOrgMembershipHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseOrganization ¶
type TraverseOrganization func(context.Context, *generated.OrganizationQuery) error
The TraverseOrganization type is an adapter to allow the use of ordinary function as Traverser.
type TraverseOrganizationHistory ¶ added in v0.4.3
type TraverseOrganizationHistory func(context.Context, *generated.OrganizationHistoryQuery) error
The TraverseOrganizationHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseOrganizationSetting ¶
type TraverseOrganizationSetting func(context.Context, *generated.OrganizationSettingQuery) error
The TraverseOrganizationSetting type is an adapter to allow the use of ordinary function as Traverser.
type TraverseOrganizationSettingHistory ¶ added in v0.4.3
type TraverseOrganizationSettingHistory func(context.Context, *generated.OrganizationSettingHistoryQuery) error
The TraverseOrganizationSettingHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraversePasswordResetToken ¶ added in v0.2.3
type TraversePasswordResetToken func(context.Context, *generated.PasswordResetTokenQuery) error
The TraversePasswordResetToken type is an adapter to allow the use of ordinary function as Traverser.
type TraversePersonalAccessToken ¶
type TraversePersonalAccessToken func(context.Context, *generated.PersonalAccessTokenQuery) error
The TraversePersonalAccessToken type is an adapter to allow the use of ordinary function as Traverser.
type TraverseSubscriber ¶ added in v0.3.6
type TraverseSubscriber func(context.Context, *generated.SubscriberQuery) error
The TraverseSubscriber type is an adapter to allow the use of ordinary function as Traverser.
type TraverseTFASetting ¶ added in v0.4.4
type TraverseTFASetting func(context.Context, *generated.TFASettingQuery) error
The TraverseTFASetting type is an adapter to allow the use of ordinary function as Traverser.
type TraverseTemplate ¶ added in v0.4.3
type TraverseTemplate func(context.Context, *generated.TemplateQuery) error
The TraverseTemplate type is an adapter to allow the use of ordinary function as Traverser.
type TraverseTemplateHistory ¶ added in v0.4.5
type TraverseTemplateHistory func(context.Context, *generated.TemplateHistoryQuery) error
The TraverseTemplateHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseUser ¶
The TraverseUser type is an adapter to allow the use of ordinary function as Traverser.
type TraverseUserHistory ¶ added in v0.4.5
type TraverseUserHistory func(context.Context, *generated.UserHistoryQuery) error
The TraverseUserHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseUserSetting ¶
type TraverseUserSetting func(context.Context, *generated.UserSettingQuery) error
The TraverseUserSetting type is an adapter to allow the use of ordinary function as Traverser.
type TraverseUserSettingHistory ¶ added in v0.4.5
type TraverseUserSettingHistory func(context.Context, *generated.UserSettingHistoryQuery) error
The TraverseUserSettingHistory type is an adapter to allow the use of ordinary function as Traverser.
type TraverseWebauthn ¶ added in v0.3.0
type TraverseWebauthn func(context.Context, *generated.WebauthnQuery) error
The TraverseWebauthn type is an adapter to allow the use of ordinary function as Traverser.
type TraverseWebhook ¶ added in v0.5.0
type TraverseWebhook func(context.Context, *generated.WebhookQuery) error
The TraverseWebhook type is an adapter to allow the use of ordinary function as Traverser.
type TraverseWebhookHistory ¶ added in v0.5.0
type TraverseWebhookHistory func(context.Context, *generated.WebhookHistoryQuery) error
The TraverseWebhookHistory type is an adapter to allow the use of ordinary function as Traverser.
type UserHistoryFunc ¶ added in v0.4.5
The UserHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type UserSettingFunc ¶
The UserSettingFunc type is an adapter to allow the use of ordinary function as a Querier.
type UserSettingHistoryFunc ¶ added in v0.4.5
type UserSettingHistoryFunc func(context.Context, *generated.UserSettingHistoryQuery) (generated.Value, error)
The UserSettingHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.
type WebauthnFunc ¶ added in v0.3.0
The WebauthnFunc type is an adapter to allow the use of ordinary function as a Querier.
type WebhookFunc ¶ added in v0.5.0
The WebhookFunc type is an adapter to allow the use of ordinary function as a Querier.
type WebhookHistoryFunc ¶ added in v0.5.0
type WebhookHistoryFunc func(context.Context, *generated.WebhookHistoryQuery) (generated.Value, error)
The WebhookHistoryFunc type is an adapter to allow the use of ordinary function as a Querier.