开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
master
分支 (1256)
标签 (152)
master
cli_extension
branch-3.42
reuse-schema
bedrock
wal2
begin-concurrent
fts5-expr-limit
oo1-no-cache-Stmt.columnCount
subsec-modifier
comma-format
cli-hex-escape
json5
generate_series-revamp
rtree-batch-insert
branch-3.41
sessions-rowid-tables
rtree-bulk-insert-perf
shell-for-test
cli-no-dump
release
version-3.42.0
version-3.41.2
version-3.41.1
version-3.41.0
version-3.40.1
major-release
version-3.40.0
version-3.39.4
version-3.39.3
version-3.39.2
version-3.39.1
version-3.39.0
version-3.38.5
version-3.38.4
relese
version-3.38.3
version-3.38.2
version-3.38.1
version-3.38.0
master
分支 (1256)
标签 (152)
master
cli_extension
branch-3.42
reuse-schema
bedrock
wal2
begin-concurrent
fts5-expr-limit
oo1-no-cache-Stmt.columnCount
subsec-modifier
comma-format
cli-hex-escape
json5
generate_series-revamp
rtree-batch-insert
branch-3.41
sessions-rowid-tables
rtree-bulk-insert-perf
shell-for-test
cli-no-dump
release
version-3.42.0
version-3.41.2
version-3.41.1
version-3.41.0
version-3.40.1
major-release
version-3.40.0
version-3.39.4
version-3.39.3
version-3.39.2
version-3.39.1
version-3.39.0
version-3.38.5
version-3.38.4
relese
version-3.38.3
version-3.38.2
version-3.38.1
version-3.38.0
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 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
分支 (1256)
标签 (152)
master
cli_extension
branch-3.42
reuse-schema
bedrock
wal2
begin-concurrent
fts5-expr-limit
oo1-no-cache-Stmt.columnCount
subsec-modifier
comma-format
cli-hex-escape
json5
generate_series-revamp
rtree-batch-insert
branch-3.41
sessions-rowid-tables
rtree-bulk-insert-perf
shell-for-test
cli-no-dump
release
version-3.42.0
version-3.41.2
version-3.41.1
version-3.41.0
version-3.40.1
major-release
version-3.40.0
version-3.39.4
version-3.39.3
version-3.39.2
version-3.39.1
version-3.39.0
version-3.38.5
version-3.38.4
relese
version-3.38.3
version-3.38.2
version-3.38.1
version-3.38.0
sqlite
/
ext
/
rtree
贡献代码
同步代码
对比差异 通过 Pull Request 同步
同步更新到分支
通过 Pull Request 同步
将会在向当前分支创建一个 Pull
Request,合入后将完成同步
File empty ...
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
This directory contains an SQLite extension that implements a virtual 
table type that allows users to create, query and manipulate r-tree[1] 
data structures inside of SQLite databases. Users create, populate 
and query r-tree structures using ordinary SQL statements.
 1. SQL Interface
 1.1 Table Creation
 1.2 Data Manipulation
 1.3 Data Querying
 1.4 Introspection and Analysis
 2. Compilation and Deployment
 3. References
1. SQL INTERFACE
 1.1 Table Creation.
 All r-tree virtual tables have an odd number of columns between
 3 and 11. Unlike regular SQLite tables, r-tree tables are strongly 
 typed. 
 The leftmost column is always the pimary key and contains 64-bit 
 integer values. Each subsequent column contains a 32-bit real
 value. For each pair of real values, the first (leftmost) must be 
 less than or equal to the second. R-tree tables may be 
 constructed using the following syntax:
 CREATE VIRTUAL TABLE <name> USING rtree(<column-names>)
 For example:
 CREATE VIRTUAL TABLE boxes USING rtree(boxno, xmin, xmax, ymin, ymax);
 INSERT INTO boxes VALUES(1, 1.0, 3.0, 2.0, 4.0);
 Constructing a virtual r-tree table <name> creates the following three
 real tables in the database to store the data structure:
 <name>_node
 <name>_rowid
 <name>_parent
 Dropping or modifying the contents of these tables directly will
 corrupt the r-tree structure. To delete an r-tree from a database,
 use a regular DROP TABLE statement:
 DROP TABLE <name>;
 Dropping the main r-tree table automatically drops the automatically
 created tables. 
 1.2 Data Manipulation (INSERT, UPDATE, DELETE).
 The usual INSERT, UPDATE or DELETE syntax is used to manipulate data
 stored in an r-tree table. Please note the following:
 * Inserting a NULL value into the primary key column has the
 same effect as inserting a NULL into an INTEGER PRIMARY KEY
 column of a regular table. The system automatically assigns
 an unused integer key value to the new record. Usually, this
 is one greater than the largest primary key value currently
 present in the table.
 * Attempting to insert a duplicate primary key value fails with
 an SQLITE_CONSTRAINT error.
 * Attempting to insert or modify a record such that the value
 stored in the (N*2)th column is greater than that stored in
 the (N*2+1)th column fails with an SQLITE_CONSTRAINT error.
 * When a record is inserted, values are always converted to 
 the required type (64-bit integer or 32-bit real) as if they
 were part of an SQL CAST expression. Non-numeric strings are
 converted to zero.
 1.3 Queries.
 R-tree tables may be queried using all of the same SQL syntax supported
 by regular tables. However, some query patterns are more efficient
 than others.
 R-trees support fast lookup by primary key value (O(logN), like 
 regular tables).
 Any combination of equality and range (<, <=, >, >=) constraints
 on spatial data columns may be used to optimize other queries. This
 is the key advantage to using r-tree tables instead of creating 
 indices on regular tables.
 1.4 Introspection and Analysis.
 TODO: Describe rtreenode() and rtreedepth() functions.
2. COMPILATION AND USAGE
 The easiest way to compile and use the RTREE extension is to build
 and use it as a dynamically loadable SQLite extension. To do this
 using gcc on *nix:
 gcc -shared rtree.c -o libSqliteRtree.so
 You may need to add "-I" flags so that gcc can find sqlite3ext.h
 and sqlite3.h. The resulting shared lib, libSqliteRtree.so, may be
 loaded into sqlite in the same way as any other dynamicly loadable
 extension.
3. REFERENCES
 [1] Atonin Guttman, "R-trees - A Dynamic Index Structure For Spatial 
 Searching", University of California Berkeley, 1984.
 [2] Norbert Beckmann, Hans-Peter Kriegel, Ralf Schneider, Bernhard Seeger,
 "The R*-tree: An Efficient and Robust Access Method for Points and
 Rectangles", Universitaet Bremen, 1990.
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

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

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

取消
提交

简介

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

发行版

暂无发行版

贡献者

全部

近期动态

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

搜索帮助

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

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