xref: /sqlite-3.40.0/src/test_multiplex.h (revision d50deeeb)
1 /*
2 ** 2011 March 18
3 **
4 ** The author disclaims copyright to this source code.  In place of
5 ** a legal notice, here is a blessing:
6 **
7 **    May you do good and not evil.
8 **    May you find forgiveness for yourself and forgive others.
9 **    May you share freely, never taking more than you give.
10 **
11 *************************************************************************
12 **
13 ** This file contains a VFS "shim" - a layer that sits in between the
14 ** pager and the real VFS.
15 **
16 ** This particular shim enforces a multiplex system on DB files.
17 ** This shim shards/partitions a single DB file into smaller
18 ** "chunks" such that the total DB file size may exceed the maximum
19 ** file size of the underlying file system.
20 **
21 */
22 
23 #ifndef _TEST_MULTIPLEX_H
24 #define _TEST_MULTIPLEX_H
25 
26 /*
27 ** CAPI: File-control Operations Supported by Multiplex VFS
28 **
29 ** Values interpreted by the xFileControl method of a Multiplex VFS db file-handle.
30 **
31 ** MULTIPLEX_CTRL_ENABLE:
32 **   This file control is used to enable or disable the multiplex
33 **   shim.
34 **
35 ** MULTIPLEX_CTRL_SET_CHUNK_SIZE:
36 **   This file control is used to set the maximum allowed chunk
37 **   size for a multiplex file set.
38 **
39 ** MULTIPLEX_CTRL_SET_MAX_CHUNKS:
40 **   This file control is used to set the maximum number of chunks
41 **   allowed to be used for a mutliplex file set.
42 */
43 #define MULTIPLEX_CTRL_ENABLE          214014
44 #define MULTIPLEX_CTRL_SET_CHUNK_SIZE  214015
45 #define MULTIPLEX_CTRL_SET_MAX_CHUNKS  214016
46 
47 
48 #endif
49