Kind: Class
Source: atloria-monorepo/libs/parser-core/src/parsers/database/sequelize.parser.ts
Sequelize Parser implementation
Implements: IParser
Methods
| Method | Signature | Returns |
|---|---|---|
initialize | initialize(_config: ParserConfig) | Promise<void> |
canParse | canParse(filePath: string) | boolean |
parseFile | parseFile(filePath: string, content: string) | Promise<ParseResult> |
parseFiles | parseFiles(files: ParseFileInput[]) | Promise<ParseResult[]> |
destroy | destroy() | Promise<void> |
Properties
| Property | Type |
|---|---|
name | any |
version | any |
supportedPatterns | any |
Where it refuses work
SequelizeParserstops the work with an early return whenargs.length === 0, in 3 places.SequelizeParserstops the work with an early return when!this.canParse(filePath).SequelizeParserstops the work with an early return when!fileContent.trim().SequelizeParserstops the work with an early return whentableNameMatch.SequelizeParserstops the work with an early return when!allowNullDecorator.SequelizeParserstops the work with an early return whenarrowMatch.
When something fails
SequelizeParserhandles failure in 3 places: it turns it into a return value in all 3.
Was this page helpful?