Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
master
Branches (1397)
Tags (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
Branches (1397)
Tags (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
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
master
Branches (1397)
Tags (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
/
rtree
contribute
Sync branch
See difference Through Pull Request Sync
Sync branch
Through Pull Request Sync
A Pull Request will be created to the current
branch and will be merged in to complete the sync
File empty ...
Notice: Creating folder will generate an empty file .keep, because not support in Git
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.
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

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

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

取消
提交

About

fork from https://github.com/sqlite/sqlite.git
No labels
README
unknown license
unknown open source license
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/source-code-sync/sqlite.git
git@gitee.com:source-code-sync/sqlite.git
source-code-sync
sqlite
sqlite
master
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

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