1 | /* |
2 | * This Source Code Form is subject to the terms of the Mozilla Public |
3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. |
5 | * |
6 | * Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V. |
7 | */ |
8 | |
9 | #ifndef _REL_SCHEMA_H_ |
10 | #define _REL_SCHEMA_H_ |
11 | |
12 | #include "sql_list.h" |
13 | #include "sql_symbol.h" |
14 | |
15 | extern sql_rel *rel_schemas(sql_query *query, symbol *sym); |
16 | |
17 | extern sql_rel *rel_create_table(sql_query *query, sql_schema *ss, int temp, |
18 | const char *sname, const char *name, |
19 | symbol *table_elements_or_subquery, |
20 | int commit_action, const char *loc, |
21 | const char *username, const char *passwd, |
22 | bool pw_encrypted, symbol* partition_def, int if_not_exists); |
23 | |
24 | extern sql_rel *rel_list(sql_allocator *sa, sql_rel *l, sql_rel *r); |
25 | extern sql_table * mvc_create_table_as_subquery( mvc *sql, sql_rel *sq, sql_schema *s, const char *tname, dlist *column_spec, int temp, int commit_action ); |
26 | |
27 | #endif /*_REL_SCHEMA_H_*/ |
28 | |