{"id":19977289,"url":"https://github.com/phartenfeller/ora-script-validator","last_synced_at":"2025-03-01T19:14:14.435Z","repository":{"id":54359943,"uuid":"334471365","full_name":"phartenfeller/ora-script-validator","owner":"phartenfeller","description":"A CLI to validate Oracle SQL-Scripts for common errors.","archived":false,"fork":false,"pushed_at":"2021-03-20T18:27:40.000Z","size":289,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-02-27T02:57:27.783Z","etag":null,"topics":["cli","linter","oracle","oracle-db","sql","validator"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phartenfeller.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-30T17:28:05.000Z","updated_at":"2023-02-17T00:40:34.000Z","dependencies_parsed_at":"2022-08-13T13:20:30.669Z","dependency_job_id":null,"html_url":"https://github.com/phartenfeller/ora-script-validator","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":"phartenfeller/node-js-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phartenfeller%2Fora-script-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phartenfeller%2Fora-script-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phartenfeller%2Fora-script-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phartenfeller%2Fora-script-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phartenfeller","download_url":"https://codeload.github.com/phartenfeller/ora-script-validator/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241411542,"owners_count":19958753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","linter","oracle","oracle-db","sql","validator"],"created_at":"2024-11-13T03:27:36.920Z","updated_at":"2025-03-01T19:14:14.409Z","avatar_url":"https://github.com/phartenfeller.png","language":"TypeScript","readme":"# ORA Script Validator\n\nA CLI to validate Oracle SQL-Scripts for common errors.\n\n## Supported checks\n\n- Linked files (e.g. @@myscript.sql)\n- Table refs (Foreign Keys, Read Grants, Alters, DML)\n- Sequence refs (nextval)\n\n## Usage\n\nRequirements: https://nodejs.org/en/\n\n```sh\nnpx orasv install.sql\n```\n\nYou can also directly install it from [NPM](https://www.npmjs.com/package/orasv) and use it offline:\n\n```sh\nnpm i -g orasv\n\norasv install.sql\n```\n\n[![NPM](https://nodei.co/npm/orasv.png)](https://nodei.co/npm/orasv/)\n\n## Config\n\nA config is not needed to run orasv but can be provided to configure the error checking process. The config does not have to be complete when a property is missing it will fall back to the default settings.\n\nSee: [CLI config arguments](#Config-File) for config generation and custom config path arguments.\n\nDefault config:\n\n```json\n{\n  \"ignoreObjects\": {\n    \"tables\": [],\n    \"sequences\": []\n  },\n  \"rules\": {\n    \"table/foreignKeys\": true,\n    \"table/readGrants\": true,\n    \"table/tableAlters\": true,\n    \"table/dmlStatements\": true,\n    \"sequence/nextvals\": true\n  }\n}\n```\n\n`ignoreObjects`:\n\nSpecify object that will be ignored and not result into errors.\n\n`rules`:\n\nEnable and disable specific rule\n\n## Arguments\n\n### Version\n\nShow the current version of orasv.\n\n`--version` or `-v`\n\nExample:\n\n```sh\norasv -v\n```\n\n### Config File\n\nGenerate config file (written to the current dir as `orasv.config.json`):\n\n```sh\norasv --genConfig\n```\n\nPass custom config path (default is `orasv.config.json`):\n\n`orasv -c {path}` or `orasv --config {path}`\n\nExample:\n\n```sh\norasv -c ./config/myOrasvConfig.json\n```\n\n### Loglevel\n\nDetermines what gets logged to the console.\n\n`--loglevel {num}` or `-l {num}`\n\nExample:\n\n```sh\norasv install.sql -l 1\n```\n\nLevels:\n\n| level | description                                 | default |\n| :---: | ------------------------------------------- | :-----: |\n|   0   | off (No output)                             |         |\n|   1   | only runtime errors                         |         |\n|   2   | all necessary info                          |   ✅    |\n|   3   | additional debug info to see whats going on |         |\n\n### Debug args\n\n#### Trace File Indexing:\n\nPrints how a file is internally indexed.\n\n```sh\norasv install.sql --traceFileIndexing\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphartenfeller%2Fora-script-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphartenfeller%2Fora-script-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphartenfeller%2Fora-script-validator/lists"}