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