Skip to content

Latest commit

 

History

History
55 lines (54 loc) · 1.73 KB

File metadata and controls

55 lines (54 loc) · 1.73 KB

PL/SQL Coding Conventions Guidance

Overview:

When developing PL/SQL code it is important to use consistent coding conventions so that packages, procedures, and functions are easily understandable. Consistent prefixes and suffixes can be used to differentiate between different types of objects. The underscore character should be used to separate the various abbreviations for objects. For all installed database modules refer to the corresponding modules’ PL/SQL coding conventions documentation. Each database project should have the major components of their PL/SQL coding conventions documented. This document defines the PL/SQL coding conventions for the Data Validation Module (DVM) Database.

Coding Conventions:

  • Object Prefixes:
    • DVM: Data Validation module
  • Object Suffixes:
    • FN: Function
    • PKG: Package
    • SP: Stored Procedure
  • Variable Prefixes:
    • EXC: PL/SQL exception
    • P: function/procedure parameter
    • PV: package variable
    • V: function/procedure variable
  • Abbreviations:
    • ACT: Active
    • APP: Application
    • ASSOC: Associated
    • BOOL: Boolean
    • CNT: Count
    • COL: Column
    • CONFIG: Configured
    • CUR: Cursor
    • CURR: Current
    • DELIM: Delimited
    • DESC: Description
    • EVAL: Evaluate
    • EXC: PL/SQL exception
    • ID: Identifier
    • IND: Indicator
    • ISS: Issue
    • MISS: Missing
    • MSG: Message
      • MULT: Multiple
    • NUM: Number
    • OBJ: Object
    • PAR: Parent
    • PARAM: Parameter
    • PK: Primary Key
    • POS: Position
    • PTA: Point in Time Architecture
    • RC: Return Code
    • REGEXP: Regular Expression
    • RET: Return
    • QC: Quality Control
    • REC: Record
    • RET: Return
    • SQL: Structured Query Language
    • SRC: Source
    • STR: Stream
    • TAB: Table
    • TEMP: Temporary
    • VAR: Variable