MySQL  8.0.27
Source Code Documentation
window_lex.h
Go to the documentation of this file.
1 /* Copyright (c) 2017, 2021, Oracle and/or its affiliates.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License, version 2.0,
5  as published by the Free Software Foundation.
6 
7  This program is also distributed with certain software (including
8  but not limited to OpenSSL) that is licensed under separate terms,
9  as designated in a particular file or component or in included license
10  documentation. The authors of MySQL hereby grant you an additional
11  permission to link the program and your derivative works with the
12  separately licensed software that they have included with MySQL.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License, version 2.0, for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23 
24 #ifndef WINDOW_LEX_INCLUDED
25 #define WINDOW_LEX_INCLUDED
26 
27 /**
28  Cf. SQL 2003 7.11 <window frame units> and class PT_border
29 */
31 
32 /**
33  Cf. SQL 2003 7.11 <window frame extent> and class PT_border
34  The Window::comparators array depends on the order of values in this enum.
35 */
42 };
43 
44 /**
45  Cf. SQL 2003 7.11 <window frame exclusion> and class PT_exclusion
46 */
52 };
53 
54 /**
55  Cf. SQL 2011 6.10 null treatment
56 */
58 
59 /**
60  Cf. SQL 2011 6.10 from first or last
61 */
63 
64 #endif /* WINDOW_LEX_INCLUDED */
enum_null_treatment
Cf.
Definition: window_lex.h:57
@ NT_IGNORE_NULLS
Definition: window_lex.h:57
@ NT_NONE
Definition: window_lex.h:57
@ NT_RESPECT_NULLS
Definition: window_lex.h:57
enum_window_frame_exclusion
Cf.
Definition: window_lex.h:47
@ WFX_CURRENT_ROW
Definition: window_lex.h:48
@ WFX_TIES
Definition: window_lex.h:50
@ WFX_NO_OTHERS
Definition: window_lex.h:51
@ WFX_GROUP
Definition: window_lex.h:49
enum_window_frame_unit
Cf.
Definition: window_lex.h:30
@ WFU_GROUPS
Definition: window_lex.h:30
@ WFU_RANGE
Definition: window_lex.h:30
@ WFU_ROWS
Definition: window_lex.h:30
enum_from_first_last
Cf.
Definition: window_lex.h:62
@ NFL_NONE
Definition: window_lex.h:62
@ NFL_FROM_LAST
Definition: window_lex.h:62
@ NFL_FROM_FIRST
Definition: window_lex.h:62
enum_window_border_type
Cf.
Definition: window_lex.h:36
@ WBT_CURRENT_ROW
Definition: window_lex.h:37
@ WBT_UNBOUNDED_PRECEDING
Definition: window_lex.h:40
@ WBT_VALUE_FOLLOWING
Definition: window_lex.h:39
@ WBT_VALUE_PRECEDING
Definition: window_lex.h:38
@ WBT_UNBOUNDED_FOLLOWING
Definition: window_lex.h:41