#include <system_view_definition_impl.h>
◆ Field_definitions
◆ Field_numbers
◆ From_clauses
◆ Where_clauses
◆ add_cte_expression()
virtual void dd::system_views::System_view_select_definition_impl::add_cte_expression |
( |
const String_type & |
cte | ) |
|
|
inlinevirtual |
Add CTE expression before SELECT.
- Parameters
-
cte | String representing the CTE expression. |
◆ add_distinct()
virtual void dd::system_views::System_view_select_definition_impl::add_distinct |
( |
| ) |
|
|
inlinevirtual |
Indicates that we should add DISTINCT clause to SELECT.
◆ add_field()
virtual void dd::system_views::System_view_select_definition_impl::add_field |
( |
int |
field_number, |
|
|
const String_type & |
field_name, |
|
|
const String_type & |
field_definition, |
|
|
bool |
add_quotes = false |
|
) |
| |
|
inlinevirtual |
Add a field definition for the SELECT projection.
This function can be called more than once. The call will add a new projection to the SELECT command.
- Parameters
-
field_number | Ordinal position of field in the projection list. |
field_name | Field name used for the SELECT's projection. |
field_definition | Expression representing the projection. |
add_quotes | If true, output single quotes around the field_definition. |
◆ add_from()
virtual void dd::system_views::System_view_select_definition_impl::add_from |
( |
const String_type & |
from | ) |
|
|
inlinevirtual |
Add FROM clause for the SELECT.
This function can be called more than once. The clause will be appended to the previous FROM clause string.
- Parameters
-
from | String representing the FROM clause. |
◆ add_star()
virtual void dd::system_views::System_view_select_definition_impl::add_star |
( |
| ) |
|
|
inlinevirtual |
Indicates selection of all field (SELECT '*').
◆ add_where()
virtual void dd::system_views::System_view_select_definition_impl::add_where |
( |
const String_type & |
where | ) |
|
|
inlinevirtual |
Add WHERE clause for the SELECT.
This function can be called more than once. The clause will be appended to the previous WHERE clause string.
- Parameters
-
where | String representing the WHERE clause. |
◆ build_ddl_create_view()
String_type dd::system_views::System_view_select_definition_impl::build_ddl_create_view |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ build_select_query()
String_type dd::system_views::System_view_select_definition_impl::build_select_query |
( |
| ) |
const |
|
inline |
Build the SELECT query that is used in the CREATE VIEW command.
- Returns
- The SELECT query string.
◆ field_number()
virtual int dd::system_views::System_view_select_definition_impl::field_number |
( |
const String_type & |
field_name | ) |
const |
|
inlinevirtual |
Get the field ordinal position number for the given field name.
- Parameters
-
field_name | Column name for which the field number is returned. |
- Returns
- Integer representing position of column in projection list.
◆ m_add_star
bool dd::system_views::System_view_select_definition_impl::m_add_star {false} |
|
private |
◆ m_cte_expression
dd::String_type dd::system_views::System_view_select_definition_impl::m_cte_expression |
|
private |
◆ m_field_definitions
Field_definitions dd::system_views::System_view_select_definition_impl::m_field_definitions |
|
private |
◆ m_field_numbers
Field_numbers dd::system_views::System_view_select_definition_impl::m_field_numbers |
|
private |
◆ m_from_clauses
From_clauses dd::system_views::System_view_select_definition_impl::m_from_clauses |
|
private |
◆ m_is_distinct
bool dd::system_views::System_view_select_definition_impl::m_is_distinct {false} |
|
private |
◆ m_where_clauses
Where_clauses dd::system_views::System_view_select_definition_impl::m_where_clauses |
|
private |
The documentation for this class was generated from the following file: