| 1 | /* -*- c-basic-offset: 2 -*- */ |
| 2 | /* |
| 3 | Copyright(C) 2009-2017 Brazil |
| 4 | |
| 5 | This library is free software; you can redistribute it and/or |
| 6 | modify it under the terms of the GNU Lesser General Public |
| 7 | License version 2.1 as published by the Free Software Foundation. |
| 8 | |
| 9 | This library is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | Lesser General Public License for more details. |
| 13 | |
| 14 | You should have received a copy of the GNU Lesser General Public |
| 15 | License along with this library; if not, write to the Free Software |
| 16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 17 | */ |
| 18 | |
| 19 | #pragma once |
| 20 | |
| 21 | #include "grn.h" |
| 22 | #include "grn_raw_string.h" |
| 23 | |
| 24 | #ifdef __cplusplus |
| 25 | extern "C" { |
| 26 | #endif |
| 27 | |
| 28 | #define GRN_JSON_LOAD_OPEN_BRACKET 0x40000000 |
| 29 | #define GRN_JSON_LOAD_OPEN_BRACE 0x40000001 |
| 30 | |
| 31 | typedef struct grn_load_input_ { |
| 32 | grn_content_type type; |
| 33 | grn_raw_string table; |
| 34 | grn_raw_string columns; |
| 35 | grn_raw_string values; |
| 36 | grn_raw_string if_exists; |
| 37 | grn_raw_string each; |
| 38 | grn_bool output_ids; |
| 39 | grn_bool output_errors; |
| 40 | uint32_t emit_level; |
| 41 | } grn_load_input; |
| 42 | |
| 43 | void grn_load_internal(grn_ctx *ctx, grn_load_input *input); |
| 44 | |
| 45 | #ifdef __cplusplus |
| 46 | } |
| 47 | #endif |
| 48 | |