{"id":104634,"date":"2022-11-17T11:42:34","date_gmt":"2022-11-17T02:42:34","guid":{"rendered":"https:\/\/softantenna.com\/blog\/?p=104634"},"modified":"2022-11-17T11:42:34","modified_gmt":"2022-11-17T02:42:34","slug":"sqlite-3-40-released","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/sqlite-3-40-released\/","title":{"rendered":"SQLite 3.40\u304c\u30ea\u30ea\u30fc\u30b9 - WASM\u30b5\u30dd\u30fc\u30c8\u3084\u30ea\u30ab\u30d0\u30ea\u62e1\u5f35\u306e\u8ffd\u52a0"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2022\/11\/s_20221117_113222.jpg\" alt=\"S 20221117 113222\" title=\"s_20221117_113222.jpg\" border=\"0\" width=\"1031\" height=\"535\" \/><\/p>\n<p>SQLite\u958b\u767a\u30c1\u30fc\u30e0\u306f11\u670816\u65e5(\u73fe\u5730\u6642\u9593)\u3001SQLite\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6700\u65b0\u7248v3.40.0\u3092<a href=\"https:\/\/sqlite.org\/releaselog\/3_40_0.html\">\u30ea\u30ea\u30fc\u30b9<\/a>\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>v3.40.0\u3067\u306f\u3001SQLite\u3092WASM\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3001Web\u30d6\u30e9\u30a6\u30b6\u3067\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u65b0\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\u3002SQLite\u306eWASM\u5316\u306f\u3001Web\u30d6\u30e9\u30a6\u30b6\u3067\u306e\u4f7f\u7528\u3092\u76ee\u7684\u3068\u3057\u305f\u3082\u306e\u3067\u3059\u304c\u3001\u3055\u307e\u3056\u307e\u306aWASM\u30c7\u30b9\u30af\u30c8\u30c3\u30d7 \u30e9\u30f3\u30bf\u30a4\u30e0\u3067\u3082\u52d5\u4f5c\u3059\u308b\u3068\u307f\u3053\u307e\u308c\u307e\u3059\u3002WASM\u30d3\u30eb\u30c9\u3068\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u306f\u73fe\u5728\u30d9\u30fc\u30bf\u7248\u3067\u3001\u6b21\u671f\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u6b63\u5f0f\u7248\u3068\u306a\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001<a href=\"https:\/\/sqlite.org\/recovery.html\">\u30ea\u30ab\u30d0\u30ea\u62e1\u5f35\u6a5f\u80fd<\/a>\u306e\u5c0e\u5165\u3082\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002SQLite\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306f\u975e\u5e38\u306b\u5805\u7262\u3067\u3042\u308b\u3053\u3068\u304c\u77e5\u3089\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u4e07\u304c\u4e00\u7834\u640d\u3057\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u306b\u3001\u53ef\u80fd\u306a\u9650\u308a\u30c7\u30fc\u30bf\u306e\u5fa9\u65e7\u3092\u8a66\u307f\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u30ea\u30ab\u30d0\u30ea\u62e1\u5f35\u6a5f\u80fd\u306f\u3001\u5fa9\u65e7\u306e\u305f\u3081\u306eAPI\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u3066\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3067\u306f\u300c.recover\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30a2\u30d7\u30ea\u304b\u3089\u3082API\u3092\u5229\u7528\u3057\u3001\u5fa9\u65e7\u51e6\u7406\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u4ed6\u30af\u30a8\u30ea\u30d7\u30e9\u30f3\u30ca\u30fc\u306e\u5f37\u5316\u3084\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u6700\u9069\u5316\u3001\u7d30\u304b\u306a\u6539\u826f\u304c\u884c\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<blockquote>\n<ol class=\"lessindent\">\n<li> Add support for compiling <a href=\"https:\/\/sqlite.org\/wasm\">SQLite to WASM<\/a><br \/>\n     and running it in web browsers.  NB:  The WASM build and its interfaces<br \/>\n     are considered \"beta\" and are subject to minor changes if the need<br \/>\n     arises.  We anticipate finalizing the interface for the next release.\n<\/li>\n<li> Add the <a href=\"..\/recovery.html\">recovery extension<\/a> that might be able to recover some content<br \/>\n     from a corrupt database file.\n<\/li>\n<li> Query planner enhancements:\n<ol type=\"a\">\n<li> Recognize <a href=\"..\/queryplanner.html#covidx\">covering indexes<\/a> on tables with more than 63 columns where<br \/>\n          columns beyond the 63rd column are used in the query and\/or are<br \/>\n          referenced by the index.\n     <\/li>\n<li> Extract the values of expressions contained within <a href=\"..\/expridx.html\">expression indexes<\/a><br \/>\n          where practical, rather than recomputing the expression.\n     <\/li>\n<li> The NOT NULL and IS NULL operators (and their equivalents) avoid<br \/>\n          loading the content of large strings and BLOB values from disk.\n     <\/li>\n<li> Avoid materializing a view on which a full scan is performed<br \/>\n          exactly once.  Use and discard the rows of the view as they are computed.\n     <\/li>\n<li> Allow flattening of a subquery that is the right-hand operand of<br \/>\n          a LEFT JOIN in an aggregate query.\n     <\/li>\n<\/ol>\n<\/li>\n<li> A new typedef named <a href=\"..\/c3ref\/filename.html\">sqlite3_filename<\/a> is added and used to represent<br \/>\n     the name of a database file.  Various interfaces are<br \/>\n     modified to use the new typedef instead of \"char*\".  This interface<br \/>\n     change should be fully backwards compatible, though it might cause<br \/>\n     (harmless) compiler warnings when rebuilding some legacy applications.\n<\/li>\n<li> Add the <a href=\"..\/c3ref\/value_blob.html\">sqlite3_value_encoding()<\/a> interface.\n<\/li>\n<li> Security enhancement: <a href=\"..\/c3ref\/c_dbconfig_defensive.html#sqlitedbconfigdefensive\">SQLITE_DBCONFIG_DEFENSIVE<\/a> is augmented to prohibit<br \/>\n     changing the <a href=\"..\/pragma.html#pragma_schema_version\">schema_version<\/a>.  The schema_version<br \/>\n     becomes read-only in defensive mode.\n<\/li>\n<li> Enhancements to the <a href=\"..\/pragma.html#pragma_integrity_check\">PRAGMA integrity_check<\/a> statement:\n<ol type=\"a\">\n<li> Columns in non-STRICT tables with TEXT affinity should not contain numeric values.\n     <\/li>\n<li> Columns in non-STRICT tables with NUMERIC affinity should not<br \/>\n          contain TEXT values that could be converted into numbers.\n     <\/li>\n<li> Verify that the rows of a <a href=\"..\/withoutrowid.html\">WITHOUT ROWID<\/a> table are in the correct order.\n     <\/li>\n<\/ol>\n<\/li>\n<li> Enhance the <a href=\"..\/lang_vacuum.html#vacuuminto\">VACUUM INTO<\/a> statement so that it honors they<br \/>\n     <a href=\"..\/pragma.html#pragma_synchronous\">PRAGMA synchronous<\/a> setting.\n<\/li>\n<li> Enhance the <a href=\"..\/c3ref\/strglob.html\">sqlite3_strglob()<\/a> and <a href=\"..\/c3ref\/strlike.html\">sqlite3_strlike()<\/a> APIs so that they are able<br \/>\n     to accept NULL pointers for their string parameters and still generate a sensible<br \/>\n     result.\n<\/li>\n<li> Provide the new <a href=\"..\/compile.html#max_allocation_size\">SQLITE_MAX_ALLOCATION_SIZE<\/a> compile-time option for limiting<br \/>\n     the size of memory allocations.\n<\/li>\n<li> Change the algorithm used by SQLite's built-in pseudo-random number generator (PRNG)<br \/>\n     from RC4 to Chacha20.\n<\/li>\n<li> Allow two or more indexes to have the same name as long as they are all in<br \/>\n     separate schemas.\n<\/li>\n<li> Miscellaneous performance optimizations result in about 1% fewer CPU cycles<br \/>\n     used on typical workloads.<\/p>\n<p><b>Hashes:<\/b>\n<\/p>\n<\/li>\n<li>SQLITE_SOURCE_ID: 2022-11-16 12:10:08 89c459e766ea7e9165d0beeb124708b955a4950d0f4792f457465d71b158d318\n<\/li>\n<li>SHA3-256 for sqlite3.c: ab8da6bc754642989e67d581f26683dc705b068cea671970f0a7d32cfacbad19\n<\/li>\n<\/ol>\n<\/blockquote>\n<p>\u30ea\u30ea\u30fc\u30b9\u30ce\u30fc\u30c8\u306f<a href=\"https:\/\/sqlite.org\/releaselog\/3_40_0.html\">\u3053\u3061\u3089<\/a>\u3067\u78ba\u8a8d\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<table>\n<tr>\n<th rowspan='4' style='white-space: nowrap;'><img decoding=\"async\" style=\"max-width: 52px; height: auto;\" src=\"\/assets\/pc-301b359275e3cfd18baf480ee6dd6d484a27fdc417431ff7dd5cd26d895260b0.png\" alt=\"Pc\" \/><\/th>\n<th style='white-space: nowrap;'>\u30bf\u30a4\u30c8\u30eb<\/th>\n<td>SQLite<\/td>\n<\/tr>\n<tr>\n<th style='white-space: nowrap;'>\u516c\u5f0f\u30b5\u30a4\u30c8<\/th>\n<td><a href=\"http:\/\/www.sqlite.org\/\">http:\/\/www.sqlite.org\/<\/a><\/td>\n<\/tr>\n<tr>\n<th style='white-space: nowrap;'>\u30bd\u30d5\u30c8\u30a2\u30f3\u30c6\u30ca<\/th>\n<td><a href=\"https:\/\/softantenna.com\/softwares\/1993-sqlite\">https:\/\/softantenna.com\/softwares\/1993-sqlite<\/a><\/td>\n<\/tr>\n<tr>\n<th style='white-space: nowrap;'>\u8aac\u660e<\/th>\n<td>\u57cb\u3081\u8fbc\u307f\u53ef\u80fd\u306aSQL\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a8\u30f3\u30b8\u30f3\u3002<\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>SQLite\u958b\u767a\u30c1\u30fc\u30e0\u306f11\u670816\u65e5(\u73fe\u5730\u6642\u9593)\u3001SQLite\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6700\u65b0\u7248v3.40.0\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002 v3.40.0\u3067\u306f\u3001SQLite\u3092WASM\u306b\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3001Web\u30d6\u30e9\u30a6\u30b6\u3067\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u65b0\u6a5f\u80fd\u304c [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":104635,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[1421],"class_list":["post-104634","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-sqlite"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/104634","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=104634"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/104634\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/104635"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=104634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=104634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=104634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}