summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/utilities/util_load.h
blob: 6056157c8291d8255316fcd968131a39e1bca773 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*-
 * Copyright (c) 2014-2019 MongoDB, Inc.
 * Copyright (c) 2008-2014 WiredTiger, Inc.
 *	All rights reserved.
 *
 * See the file LICENSE for redistribution information.
 */

/*
 * A list of configuration strings.
 */
typedef struct {
	char **list;		/* array of alternating (uri, config) values */
	int entry;		/* next entry available in list */
	int max_entry;		/* how many allocated in list */
} CONFIG_LIST;

int	 config_exec(WT_SESSION *, char **);
int	 config_list_add(WT_SESSION *, CONFIG_LIST *, char *);
void	 config_list_free(CONFIG_LIST *);
int	 config_reorder(WT_SESSION *, char **);
int	 config_update(WT_SESSION *, char **);

/* Flags for util_load_json */
/* AUTOMATIC FLAG VALUE GENERATION START */
#define	LOAD_JSON_APPEND	0x1u	/* append (ignore record number keys) */
#define	LOAD_JSON_NO_OVERWRITE	0x2u	/* don't overwrite existing data */
/* AUTOMATIC FLAG VALUE GENERATION STOP */

int	 util_load_json(WT_SESSION *, const char *, uint32_t);