MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / GetVal

Method GetVal

pkg/sql/sem/tree/create.go:1482–1489  ·  view source on GitHub ↗

GetVal returns corresponding value if a key exists, otherwise nil is returned.

(key string)

Source from the content-addressed store, hash-verified

1480// GetVal returns corresponding value if a key exists, otherwise nil is
1481// returned.
1482func (o *StorageParams) GetVal(key string) Expr {
1483 for _, param := range *o {
1484 if param.Key == key {
1485 return param.Value
1486 }
1487 }
1488 return nil
1489}
1490
1491// CreateTableOnCommitSetting represents the CREATE TABLE ... ON COMMIT <action>
1492// parameters.

Callers 4

docRowMethod · 0.80
IsSetOrResetSchemaLockedFunction · 0.80
IsAllowedLDRSchemaChangeFunction · 0.80
FormatMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected