MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / Select

Method Select

ent/oauthclient_update.go:578–581  ·  view source on GitHub ↗

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

(field string, fields ...string)

Source from the content-addressed store, hash-verified

576// Select allows selecting one or more fields (columns) of the returned entity.
577// The default is selecting all fields defined in the entity schema.
578func (ocuo *OAuthClientUpdateOne) Select(field string, fields ...string) *OAuthClientUpdateOne {
579 ocuo.fields = append([]string{field}, fields...)
580 return ocuo
581}
582
583// Save executes the query and returns the updated OAuthClient entity.
584func (ocuo *OAuthClientUpdateOne) Save(ctx context.Context) (*OAuthClient, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected