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 _SQL_SCENARIO_H_
10#define _SQL_SCENARIO_H_
11#include "sql.h"
12
13/* #define _SQL_SCENARIO_DEBUG */
14/* #define _SQL_READER_DEBUG */
15/* #define _SQL_PARSER_DEBUG */
16
17sql5_export int SQLdebug;
18sql5_export str SQLprelude(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
19sql5_export str SQLepilogue(void *ret);
20
21sql5_export str SQLautocommit(mvc *m);
22sql5_export str SQLtrans(mvc *m);
23
24sql5_export str SQLexit(Client c);
25sql5_export str SQLexitClient(Client c);
26sql5_export str SQLresetClient(Client c);
27sql5_export str SQLinitClient(Client c);
28sql5_export str SQLinitClientFromMAL(Client c);
29sql5_export str SQLreader(Client c);
30sql5_export str SQLparser(Client c);
31sql5_export str SQLengine(Client c);
32sql5_export str SQLcallback(Client c, str msg);
33sql5_export str handle_error(mvc *m, int pstatus, str msg);
34
35sql5_export str SQLstatement(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
36sql5_export str SQLcompile(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
37sql5_export str SQLinclude(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
38sql5_export str SQLCacheRemove(Client c, str nme);
39sql5_export str SQLescapeString(str s);
40
41sql5_export str SYSupdate_tables(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
42sql5_export str SYSupdate_schemas(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
43
44#endif /* _SQL_SCENARIO_H_ */
45