← All compilation units

Flyology.Postgres.SQL

Description

Cursor_Position

function Cursor_Position (Item : Diagnostic) return Natural
Parameters
Item
Return value

Default_Options

Default_Options : constant Parse_Options := (others => <>);

Diagnostic

type Diagnostic is private;

Error

function Error (Tree : Syntax_Tree) return Diagnostic
Parameters
Tree
Return value

Is_Valid

function Is_Valid (Tree : Syntax_Tree) return Boolean
Parameters
Tree
Return value

Major_Version

type Major_Version is (PostgreSQL_14, PostgreSQL_15, PostgreSQL_16,
                       PostgreSQL_17, PostgreSQL_18);
Enumeration literals
PostgreSQL_14
PostgreSQL_15
PostgreSQL_16
PostgreSQL_17
PostgreSQL_18

Message

function Message (Item : Diagnostic) return String
Parameters
Item
Return value

Parse_Mode

type Parse_Mode is
  (SQL_Statements,
   Type_Name,
   PLpgSQL_Expression,
   PLpgSQL_Assignment_1,
   PLpgSQL_Assignment_2,
   PLpgSQL_Assignment_3);
Enumeration literals
SQL_Statements
Type_Name
PLpgSQL_Expression
PLpgSQL_Assignment_1
PLpgSQL_Assignment_2
PLpgSQL_Assignment_3

Parse_Options

type Parse_Options is record
   Mode                       : Parse_Mode := SQL_Statements;
   Backslash_Quote            : Boolean := True;
   Standard_Conforming_Strings : Boolean := True;
   Escape_String_Warning      : Boolean := True;
end record;
Record fields
Mode
Backslash_Quote
Standard_Conforming_Strings
Escape_String_Warning

Parser_Backend_Error

Parser_Backend_Error : exception;

Source

function Source (Tree : Syntax_Tree) return String
Parameters
Tree
Return value

Supports_Parse_Options

function Supports_Parse_Options (Version : Major_Version) return Boolean
Parameters
Version
Return value

Syntax_Tree

type Syntax_Tree is tagged limited private;

Unsupported_Parse_Options

Unsupported_Parse_Options : exception;

Version

function Version (Tree : Syntax_Tree) return Major_Version
Parameters
Tree
Return value