开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
master
分支 (1397)
标签 (163)
master
unique-in-opt
vtab-limit-fix
compound-subquery-affinity
vector-in-fix
fts5-tokenize-blob
reuse-schema-3.45
bedrock
wal2
begin-concurrent
mistake
wal2-3.45
begin-concurrent-3.45
branch-3.45
branch-3.44
btree-ovfl-cache
pushdown-subquery
pushdown-IN-table
reuse-schema
branch-3.28
release
version-3.45.3
version-3.45.2
version-3.45.1
vesion-3.45.1
version-3.45.0
version-3.44.2
version-3.44.1
major-release
version-3.44.0
version-3.43.2
version-3.43.1
version-3.43.0
version-3.42.0
version-3.41.2
version-3.41.1
version-3.41.0
version-3.40.1
version-3.40.0
version-3.39.4
master
分支 (1397)
标签 (163)
master
unique-in-opt
vtab-limit-fix
compound-subquery-affinity
vector-in-fix
fts5-tokenize-blob
reuse-schema-3.45
bedrock
wal2
begin-concurrent
mistake
wal2-3.45
begin-concurrent-3.45
branch-3.45
branch-3.44
btree-ovfl-cache
pushdown-subquery
pushdown-IN-table
reuse-schema
branch-3.28
release
version-3.45.3
version-3.45.2
version-3.45.1
vesion-3.45.1
version-3.45.0
version-3.44.2
version-3.44.1
major-release
version-3.44.0
version-3.43.2
version-3.43.1
version-3.43.0
version-3.42.0
version-3.41.2
version-3.41.1
version-3.41.0
version-3.40.1
version-3.40.0
version-3.39.4
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (1397)
标签 (163)
master
unique-in-opt
vtab-limit-fix
compound-subquery-affinity
vector-in-fix
fts5-tokenize-blob
reuse-schema-3.45
bedrock
wal2
begin-concurrent
mistake
wal2-3.45
begin-concurrent-3.45
branch-3.45
branch-3.44
btree-ovfl-cache
pushdown-subquery
pushdown-IN-table
reuse-schema
branch-3.28
release
version-3.45.3
version-3.45.2
version-3.45.1
vesion-3.45.1
version-3.45.0
version-3.44.2
version-3.44.1
major-release
version-3.44.0
version-3.43.2
version-3.43.1
version-3.43.0
version-3.42.0
version-3.41.2
version-3.41.1
version-3.41.0
version-3.40.1
version-3.40.0
version-3.39.4
sqlite
/
ext
/
icu
贡献代码
同步代码
对比差异 通过 Pull Request 同步
同步更新到分支
通过 Pull Request 同步
将会在向当前分支创建一个 Pull
Request,合入后将完成同步
File empty ...
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
This directory contains source code for the SQLite "ICU" extension, an
integration of the "International Components for Unicode" library with
SQLite. Documentation follows.
 1. Features
 
 1.1 SQL Scalars upper() and lower()
 1.2 Unicode Aware LIKE Operator
 1.3 ICU Collation Sequences
 1.4 SQL REGEXP Operator
 
 2. Compilation and Usage
 
 3. Bugs, Problems and Security Issues
 
 3.1 The "case_sensitive_like" Pragma
 3.2 The SQLITE_MAX_LIKE_PATTERN_LENGTH Macro
 3.3 Collation Sequence Security Issue
1. FEATURES
 1.1 SQL Scalars upper() and lower()
 SQLite's built-in implementations of these two functions only 
 provide case mapping for the 26 letters used in the English
 language. The ICU based functions provided by this extension
 provide case mapping, where defined, for the full range of 
 unicode characters.
 ICU provides two types of case mapping, "general" case mapping and
 "language specific". Refer to ICU documentation for the differences
 between the two. Specifically:
 http://www.icu-project.org/userguide/caseMappings.html
 http://www.icu-project.org/userguide/posix.html#case_mappings
 To utilise "general" case mapping, the upper() or lower() scalar 
 functions are invoked with one argument:
 upper('abc') -> 'ABC'
 lower('ABC') -> 'abc'
 To access ICU "language specific" case mapping, upper() or lower()
 should be invoked with two arguments. The second argument is the name
 of the locale to use. Passing an empty string ("") or SQL NULL value
 as the second argument is the same as invoking the 1 argument version
 of upper() or lower():
 lower('I', 'en_us') -> 'i'
 lower('I', 'tr_tr') -> 'ı' (small dotless i)
 1.2 Unicode Aware LIKE Operator
 Similarly to the upper() and lower() functions, the built-in SQLite LIKE
 operator understands case equivalence for the 26 letters of the English
 language alphabet. The implementation of LIKE included in this
 extension uses the ICU function u_foldCase() to provide case
 independent comparisons for the full range of unicode characters. 
 The U_FOLD_CASE_DEFAULT flag is passed to u_foldCase(), meaning the
 dotless 'I' character used in the Turkish language is considered
 to be in the same equivalence class as the dotted 'I' character
 used by many languages (including English).
 1.3 ICU Collation Sequences
 A special SQL scalar function, icu_load_collation() is provided that 
 may be used to register ICU collation sequences with SQLite. It
 is always called with exactly two arguments, the ICU locale 
 identifying the collation sequence to ICU, and the name of the
 SQLite collation sequence to create. For example, to create an
 SQLite collation sequence named "turkish" using Turkish language
 sorting rules, the SQL statement:
 SELECT icu_load_collation('tr_TR', 'turkish');
 Or, for Australian English:
 SELECT icu_load_collation('en_AU', 'australian');
 The identifiers "turkish" and "australian" may then be used
 as collation sequence identifiers in SQL statements:
 CREATE TABLE aust_turkish_penpals(
 australian_penpal_name TEXT COLLATE australian,
 turkish_penpal_name TEXT COLLATE turkish
 );
 
 1.4 SQL REGEXP Operator
 This extension provides an implementation of the SQL binary
 comparision operator "REGEXP", based on the regular expression functions
 provided by the ICU library. The syntax of the operator is as described
 in SQLite documentation:
 <string> REGEXP <re-pattern>
 This extension uses the ICU defaults for regular expression matching
 behavior. Specifically, this means that:
 * Matching is case-sensitive,
 * Regular expression comments are not allowed within patterns, and
 * The '^' and '$' characters match the beginning and end of the
 <string> argument, not the beginning and end of lines within
 the <string> argument.
 Even more specifically, the value passed to the "flags" parameter
 of ICU C function uregex_open() is 0.
2 COMPILATION AND USAGE
 The easiest way to compile and use the ICU extension is to build
 and use it as a dynamically loadable SQLite extension. To do this
 using gcc on *nix:
 gcc -fPIC -shared icu.c `pkg-config --libs --cflags icu-uc icu-io` \
 -o libSqliteIcu.so
 You may need to add "-I" flags so that gcc can find sqlite3ext.h
 and sqlite3.h. The resulting shared lib, libSqliteIcu.so, may be
 loaded into sqlite in the same way as any other dynamically loadable
 extension.
3 BUGS, PROBLEMS AND SECURITY ISSUES
 3.1 The "case_sensitive_like" Pragma
 This extension does not work well with the "case_sensitive_like"
 pragma. If this pragma is used before the ICU extension is loaded,
 then the pragma has no effect. If the pragma is used after the ICU
 extension is loaded, then SQLite ignores the ICU implementation and
 always uses the built-in LIKE operator.
 The ICU extension LIKE operator is always case insensitive.
 3.2 The SQLITE_MAX_LIKE_PATTERN_LENGTH Macro
 Passing very long patterns to the built-in SQLite LIKE operator can
 cause excessive CPU usage. To curb this problem, SQLite defines the
 SQLITE_MAX_LIKE_PATTERN_LENGTH macro as the maximum length of a
 pattern in bytes (irrespective of encoding). The default value is
 defined in internal header file "limits.h".
 
 The ICU extension LIKE implementation suffers from the same 
 problem and uses the same solution. However, since the ICU extension
 code does not include the SQLite file "limits.h", modifying
 the default value therein does not affect the ICU extension.
 The default value of SQLITE_MAX_LIKE_PATTERN_LENGTH used by
 the ICU extension LIKE operator is 50000, defined in source 
 file "icu.c".
 3.3 Collation Sequence Security
 Internally, SQLite assumes that indices stored in database files
 are sorted according to the collation sequence indicated by the
 SQL schema. Changing the definition of a collation sequence after
 an index has been built is therefore equivalent to database
 corruption. The SQLite library is well tested for robustness in
 the fact of database corruption. Database corruption may well
 lead to incorrect answers, but should not cause memory errors.
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

fork from https://github.com/sqlite/sqlite.git
暂无标签
README
未知许可证
查看未知开源许可协议
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/source-code-sync/sqlite.git
git@gitee.com:source-code-sync/sqlite.git
source-code-sync
sqlite
sqlite
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /