From: dan Date: Tue, 20 Feb 2018 20:57:20 +0000 (+0000) Subject: Update README.md in ext/zonefile. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc6cece39a2188ccafb3db36371217a273ef57a6;p=thirdparty%2Fsqlite.git Update README.md in ext/zonefile. FossilOrigin-Name: a13b2b38137025d04bbfc1b12f0d0563dcf7e0ab1d4b06ffc7cacf994f00e188 --- diff --git a/ext/zonefile/README.md b/ext/zonefile/README.md index 32a556133d..d404eb2855 100644 --- a/ext/zonefile/README.md +++ b/ext/zonefile/README.md @@ -30,10 +30,37 @@ is the name of the database table to read and optional argument <parameters> is a JSON object containing various attributes that influence creation of the zonefile file. -Currently the only <parameters> attribute supported is -maxAutoFrameSize (default value 65536), which sets the maximum -uncompressed frame size in bytes for automatically generated zonefile -frames. +Currently, the following <parameters> attributes are supported: + + +
AttributeDefaultInterpretation +
maxAutoFrameSize65536 +The maximum uncompressed frame size in bytes for automatically generated +zonefile frames. + +
compressionTypeContent"none" +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. + +
compressionTypeIndexData"none" +The compression type used to compress the zonefile index structure. +All values that are valid for the compressionTypeContent parameter, +except for "zstd_global_dict", are also valid for this option. + +
encryptionType"none" +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). + +
encryptionKey"" +The encryption key (a string) to use. The value of this option is +ignored if encryptionType is set to "none". +
For example, to create a zonefile named "test.zonefile" based on the contents of database table "test_input" and with a maximum automatic @@ -53,12 +80,10 @@ This creates two virtual tables in the database schema. One read-only table 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: diff --git a/manifest b/manifest index 118621e308..c2031e8831 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -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 @@ -408,7 +408,7 @@ F ext/session/test_session.c eb0bd6c1ea791c1d66ee4ef94c16500dad936386 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 @@ -1708,7 +1708,7 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93 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 diff --git a/manifest.uuid b/manifest.uuid index 9cdc09bb43..438d8112c4 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -d8d0bdcb405610978393bb8f3ef30ee868fddda0d129036f8d0102012fe0d5d4 \ No newline at end of file +a13b2b38137025d04bbfc1b12f0d0563dcf7e0ab1d4b06ffc7cacf994f00e188 \ No newline at end of file