<parameters> is a JSON object containing various attributes that
influence creation of the zonefile file.
-Currently the only <parameters> attribute supported is
-<i>maxAutoFrameSize</i> (default value 65536), which sets the maximum
-uncompressed frame size in bytes for automatically generated zonefile
-frames.
+Currently, the following <parameters> attributes are supported:
+
+<table border=1>
+<tr align=left><th>Attribute<th>Default<th>Interpretation
+<tr valign=top><td>maxAutoFrameSize<td>65536
+<td>The maximum uncompressed frame size in bytes for automatically generated
+zonefile frames.
+
+<tr valign=top><td>compressionTypeContent<td>"none"
+<td>The compression type used to compress each frame in the zonefile.
+Valid values are "none" (no compression), "zstd", "zstd_global_dict",
+"zlib", "brotli", "lz4" and "lz4hc". Not all compression methods are
+supported by all builds. The compression method supported by a build
+depends on the combination of SQLITE_HAVE_ZSTD, SQLITE_HAVE_ZLIB,
+SQLITE_HAVE_BROTLI and SQLITE_HAVE_LZ4 pre-processor symbols defined
+at build time.
+
+<tr valign=top><td>compressionTypeIndexData<td>"none"
+<td>The compression type used to compress the zonefile index structure.
+All values that are valid for the <i>compressionTypeContent</i> parameter,
+except for "zstd_global_dict", are also valid for this option.
+
+<tr valign=top><td>encryptionType<td>"none"
+<td>The encryption type to use. At present the only valid values are
+"none" (no encryption) and "xor" (an insecure mock encryption method
+useful for testing only).
+
+<tr valign=top><td>encryptionKey<td>""
+<td>The encryption key (a string) to use. The value of this option is
+ignored if <i>encryptionType</i> is set to "none".
+</table>
For example, to create a zonefile named "test.zonefile" based on the
contents of database table "test_input" and with a maximum automatic
named "z1", with a schema equivalent to:
> CREATE TABLE z1( -- this whole table is read-only
-> k INTEGER PRIMARY KEY,
-> v BLOB,
-> fileid INTEGER,
-> frame INTEGER,
-> ofst INTEGER,
-> sz INTEGER
+> k INTEGER PRIMARY KEY, -- key value
+> v BLOB, -- associated blob of data
+> file TEXT, -- file this key is read from
+> sz INTEGER -- size of blob of data in bytes
> );
And a read-write table named "z1_files" with a schema like:
-C Fix\sa\sproblem\swith\sreading\sthe\s"file"\scolumn\sof\sa\szonefile\svirtual\stable.
-D 2018-02-20T19:25:49.291
+C Update\sREADME.md\sin\sext/zonefile.
+D 2018-02-20T20:57:20.401
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
F Makefile.in 7a3f714b4fcf793108042b7b0a5c720b0b310ec84314d61ba7f3f49f27e550ea
F ext/userauth/sqlite3userauth.h 7f3ea8c4686db8e40b0a0e7a8e0b00fac13aa7a3
F ext/userauth/user-auth.txt e6641021a9210364665fe625d067617d03f27b04
F ext/userauth/userauth.c 3410be31283abba70255d71fd24734e017a4497f
-F ext/zonefile/README.md 1a95a93c865e196bc6301581e5a702f449ea9ce0e307cdbdbbdfd58377f1ec7e
+F ext/zonefile/README.md df86ef5b4f9aa8b07e1c8124b3f2dcea616927385aad59d525b784f0a06d446c
F ext/zonefile/zonefile.c e65e17336a635ab1a7745924c2a9801427fcb7d90faf27495a18818c2873cf43
F ext/zonefile/zonefile1.test a30f9604cede51f699af8192a34fac96dc05b860ffa10d6040baeda7df350ccd
F install-sh 9d4de14ab9fb0facae2f48780b874848cbf2f895 x
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
-P 56801c461c5d19cf96146fe0fa7f725c81da5cd7495c9608cd044125d00fecfe
-R ba7ae0ba2f81b939f32aa56d85d21a90
+P d8d0bdcb405610978393bb8f3ef30ee868fddda0d129036f8d0102012fe0d5d4
+R 330350d65a5b59e381d4f9046562bedf
U dan
-Z d1c74b9a3c2d2e5fb68ce19cfd3af3bc
+Z dfd577d68bb047c0ff359adce6e8e2de