Function: matchRows()
matchRows(
args):RowMatch
Defined in: rowPattern.ts:249
The rows of scope one resource pattern reaches; a malformed one reaches none.
Parameters
| Parameter | Type | Description |
|---|---|---|
args | { names: { ancestors: (value) => string[]; buildName: (args) => string; buildPathAlias: (args) => string; isPathAliasPattern: (args) => boolean; leafType: (parsed) => string; matchPattern: (args) => boolean; parseName: (value) => NameResult<ParsedName>; pathAliasRootType: string | undefined; patternCovers: (args) => boolean; patternError: (pattern) => string | null; patternKinds: (pattern) => SegmentKind[]; patternRegex: (args) => string; patternsOverlap: (args) => boolean; patternTypes: (pattern) => string[]; prefix: string; splitPattern: (pattern) => string[]; }; pattern: string; scope: RowScope; } | - |
args.names | { ancestors: (value) => string[]; buildName: (args) => string; buildPathAlias: (args) => string; isPathAliasPattern: (args) => boolean; leafType: (parsed) => string; matchPattern: (args) => boolean; parseName: (value) => NameResult<ParsedName>; pathAliasRootType: string | undefined; patternCovers: (args) => boolean; patternError: (pattern) => string | null; patternKinds: (pattern) => SegmentKind[]; patternRegex: (args) => string; patternsOverlap: (args) => boolean; patternTypes: (pattern) => string[]; prefix: string; splitPattern: (pattern) => string[]; } | - |
args.names.ancestors | (value) => string[] | Every ancestor node of a name, itself first, the root last. |
args.names.buildName | (args) => string | Builds a name from its containment chain, root first. |
args.names.buildPathAlias | (args) => string | Builds a path alias from raw (unencoded) path segments. |
args.names.isPathAliasPattern | (args) => boolean | Whether pattern names path aliases: it names the path node. |
args.names.leafType | (parsed) => string | The leaf's type: the last step's, path for an alias. |
args.names.matchPattern | (args) => boolean | True when pattern matches name or any of its ancestors. |
args.names.parseName | (value) => NameResult<ParsedName> | Parses a name or a path alias; never a pattern. |
args.names.pathAliasRootType | string | undefined | - |
args.names.patternCovers | (args) => boolean | True when every name inner reaches, outer reaches. Sound: true is never wrong. |
args.names.patternError | (pattern) => string | null | Validates a resource pattern; null when it is well formed. |
args.names.patternKinds | (pattern) => SegmentKind[] | The kind of each segment of a well-formed pattern, aligned with splitPattern. |
args.names.patternRegex | (args) => string | The regular expression matching exactly the names matchPattern says pattern reaches, for a store that filters rows by it; JavaScript and PostgreSQL (~) read it alike. |
args.names.patternsOverlap | (args) => boolean | True when some name is reached by both patterns. |
args.names.patternTypes | (pattern) => string[] | The types a well-formed pattern names literally, for a registry to check. |
args.names.prefix | string | - |
args.names.splitPattern | (pattern) => string[] | A well-formed pattern's segments, ** among them. |
args.pattern | string | - |
args.scope | RowScope | - |