| <!-- | |
| Licensed to the Apache Software Foundation (ASF) under one | |
| or more contributor license agreements. See the NOTICE file | |
| distributed with this work for additional information | |
| regarding copyright ownership. The ASF licenses this file | |
| to you under the Apache License, Version 2.0 (the | |
| "License"); you may not use this file except in compliance | |
| with the License. You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, | |
| software distributed under the License is distributed on an | |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| KIND, either express or implied. See the License for the | |
| specific language governing permissions and limitations | |
| under the License. | |
| --> | |
| # SQLite integration | |
| The SQLite integration combines SQLite's transactional storage with TsFile's | |
| compression for historical time-series data. Applications read and write through | |
| a logical table: mutable data stays in SQLite, while sealed data is stored in | |
| TsFile and remains queryable through the same table. | |
| ## Features | |
| - Create a writable table with a declared schema, or initialize one from an | |
| existing TsFile. | |
| - Seal data into TsFile through SQL. Sealed rows remain readable but cannot be | |
| updated or deleted. | |
| - Query an existing TsFile as a read-only table. | |
| - Export a table to an independent TsFile, including its hot data. | |
| ## Documentation and source | |
| For build instructions, SQL examples, and transaction semantics, see the user | |
| guides: | |
| - [English user guide](https://github.com/apache/tsfile/blob/experiment-sqlite/cpp/src/sqlite/USER_GUIDE_EN.md) | |
| - [中文使用手册](https://github.com/apache/tsfile/blob/experiment-sqlite/cpp/src/sqlite/USER_GUIDE.md) | |
| - [Source code](https://github.com/apache/tsfile/tree/experiment-sqlite/cpp/src/sqlite) | |
| - [Mailing-list discussion](https://lists.apache.org/thread/62oqkfo2nmojhrhfnrb1rhhwn4vcykw6) |