MCPcopy
hub / github.com/pocketbase/pocketbase / defaultViewIdField

Function defaultViewIdField

core/view.go:308–316  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

306}
307
308func defaultViewIdField() Field {
309 return &TextField{
310 Name: FieldNameId,
311 System: true,
312 Required: true,
313 PrimaryKey: true,
314 Pattern: `^[a-z0-9]+$`,
315 }
316}
317
318var castRegex = regexp.MustCompile(`(?is)^cast\s*\(.*\s+as\s+(\w+)\s*\)$`)
319

Callers 2

defaultViewFieldFunction · 0.85
parseQueryToFieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…