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

Method Select

ent/node_update.go:597–600  ·  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

595// Select allows selecting one or more fields (columns) of the returned entity.
596// The default is selecting all fields defined in the entity schema.
597func (nuo *NodeUpdateOne) Select(field string, fields ...string) *NodeUpdateOne {
598 nuo.fields = append([]string{field}, fields...)
599 return nuo
600}
601
602// Save executes the query and returns the updated Node entity.
603func (nuo *NodeUpdateOne) Save(ctx context.Context) (*Node, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected