Module Values_2.ViewRepresentationSource

A structure that contains the dialect of the view, and the query that defines the view.

Sourcetype nonrec t = {
  1. dialect : Values_1.ViewDialect.t option;
    (*

    The dialect of the query engine.

    *)
  2. dialectVersion : Values_1.ViewDialectVersionString.t option;
    (*

    The version of the dialect of the query engine. For example, 3.0.0.

    *)
  3. viewOriginalText : Values_1.ViewTextString.t option;
    (*

    The SELECT query provided by the customer during CREATE VIEW DDL. This SQL is not used during a query on a view (ViewExpandedText is used instead). ViewOriginalText is used for cases like SHOW CREATE VIEW where users want to see the original DDL command that created the view.

    *)
  4. viewExpandedText : Values_1.ViewTextString.t option;
    (*

    The expanded SQL for the view. This SQL is used by engines while processing a query on a view. Engines may perform operations during view creation to transform ViewOriginalText to ViewExpandedText. For example: Fully qualified identifiers: SELECT * from table1 -> SELECT * from db1.table1

    *)
  5. validationConnection : Values_0.NameString.t option;
    (*

    The name of the connection to be used to validate the specific representation of the view.

    *)
  6. isStale : Values_0.NullableBoolean.t option;
    (*

    Dialects marked as stale are no longer valid and must be updated before they can be queried in their respective query engines.

    *)
}
Sourceval make : ?dialect:??? -> ?dialectVersion:??? -> ?viewOriginalText:??? -> ?viewExpandedText:??? -> ?validationConnection:??? -> ?isStale:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Values_0.NullableBoolean.t | `Enum of string | `String of Values_1.ViewDialectVersionString.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t