{"id":28474601,"url":"https://github.com/apijson/apijson-iotdb","last_synced_at":"2026-02-05T08:02:23.596Z","repository":{"id":269299303,"uuid":"906971263","full_name":"APIJSON/apijson-iotdb","owner":"APIJSON","description":"腾讯 APIJSON 的 IoTDB 物联网数据库插件。An IoTDB plugin for Tencent APIJSON.","archived":false,"fork":false,"pushed_at":"2025-01-31T09:07:23.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-07T13:41:42.726Z","etag":null,"topics":["apijson","iot","iotdb","time-series","timeseries"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/APIJSON.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-22T13:07:21.000Z","updated_at":"2025-01-19T11:31:48.000Z","dependencies_parsed_at":"2024-12-22T15:24:33.836Z","dependency_job_id":null,"html_url":"https://github.com/APIJSON/apijson-iotdb","commit_stats":null,"previous_names":["apijson/apijson-iotdb"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/APIJSON/apijson-iotdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APIJSON%2Fapijson-iotdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APIJSON%2Fapijson-iotdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APIJSON%2Fapijson-iotdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APIJSON%2Fapijson-iotdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/APIJSON","download_url":"https://codeload.github.com/APIJSON/apijson-iotdb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/APIJSON%2Fapijson-iotdb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262944229,"owners_count":23388716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apijson","iot","iotdb","time-series","timeseries"],"created_at":"2025-06-07T13:30:22.909Z","updated_at":"2026-02-05T08:02:23.562Z","avatar_url":"https://github.com/APIJSON.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# apijson-iotdb  [![](https://jitpack.io/v/APIJSON/apijson-iotdb.svg)](https://jitpack.io/#APIJSON/apijson-iotdb)\n腾讯 [APIJSON](https://github.com/Tencent/APIJSON) 7.0.3+ 的 IoTDB 数据库插件，可通过 Maven, Gradle 等远程依赖。\u003cbr /\u003e\nAn IoTDB plugin for Tencent [APIJSON](https://github.com/Tencent/APIJSON) 7.0.3+\n\n![image](https://github.com/user-attachments/assets/c12a6170-e78f-40d3-8e3c-30f8a36bb1a5)\n![image](https://github.com/user-attachments/assets/920dd1ea-5490-4c1e-8132-7e1f6324f156)\n![image](https://github.com/user-attachments/assets/4b65704d-67ee-403b-a1b6-cf1c16e761e0)\n\n## 添加依赖\n## Add Dependency\n\n### Maven\n#### 1. 在 pom.xml 中添加 JitPack 仓库\n#### 1. Add the JitPack repository to pom.xml\n```xml\n\t\u003crepositories\u003e\n\t\t\u003crepository\u003e\n\t\t    \u003cid\u003ejitpack.io\u003c/id\u003e\n\t\t    \u003curl\u003ehttps://jitpack.io\u003c/url\u003e\n\t\t\u003c/repository\u003e\n\t\u003c/repositories\u003e\n```\n\n![image](https://user-images.githubusercontent.com/5738175/167261814-d75d8fff-0e64-4534-a840-60ef628a8873.png)\n\n\u003cbr /\u003e\n\n#### 2. 在 pom.xml 中添加 apijson-iotdb 依赖\n#### 2. Add the apijson-iotdb dependency to pom.xml\n```xml\n\t\u003cdependency\u003e\n\t    \u003cgroupId\u003ecom.github.APIJSON\u003c/groupId\u003e\n\t    \u003cartifactId\u003eapijson-iotdb\u003c/artifactId\u003e\n\t    \u003cversion\u003eLATEST\u003c/version\u003e\n\t\u003c/dependency\u003e\n```\n\n\u003cbr /\u003e\n\nhttps://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONBoot-MultiDataSource/pom.xml\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n### Gradle\n#### 1. 在项目根目录 build.gradle 中最后添加 JitPack 仓库\n#### 1. Add the JitPack repository in your root build.gradle at the end of repositories\n```gradle\n\tallprojects {\n\t\trepositories {\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n```\n\u003cbr /\u003e\n\n#### 2. 在项目某个 module 目录(例如 `app`) build.gradle 中添加 apijson-iotdb 依赖\n#### 2. Add the apijson-iotdb dependency in one of your modules(such as `app`)\n```gradle\n\tdependencies {\n\t        implementation 'com.github.APIJSON:apijson-iotdb:latest'\n\t}\n```\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n## 使用\n## Usage\n\n在你项目继承 AbstractSQLExecutor 的子类重写方法 execute \u003cbr/\u003e\nOverride execute in your SQLExecutor extends AbstractSQLExecutor\n\n```java\n        @Override\n        public JSONObject execute(@NotNull SQLConfig\u003cLong\u003e config, boolean unknownType) throws Exception {\n            if (config.isIoTDB()) {\n                return InfluxdbUtil.execute(config, null, unknownType);\n            }\n   \n            return super.execute(config, unknownType);\n        }\n```\n\n\u003cbr/\u003e\n在你项目继承 AbstractSQLConfig 的子类重写方法 execute \u003cbr/\u003e\nOverride execute in your SQLConfig extends AbstractSQLConfig\n\n```java\n\t@Override\n    public String getTablePath() {\n        return IoTDBUtil.getTablePath(super.getTablePath(), isIoTDB());\n    }\n```\n\n#### 见 [IoTDBUtil](/src/main/java/apijson/iotdb/IoTDBUtil.java) 的注释及 [APIJSONBoot-MultiDataSource](https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONBoot-MultiDataSource) 的 [DemoSQLExecutor](https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/java/apijson/demo/DemoSQLExecutor.java) \u003cbr /\u003e\n\n#### See document in [IoTDBUtil](/src/main/java/apijson/iotdb/IoTDBUtil.java) and [DemoSQLExecutor](https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/java/apijson/demo/DemoSQLExecutor.java) in [APIJSONBoot-MultiDataSource](https://github.com/APIJSON/APIJSON-Demo/blob/master/APIJSON-Java-Server/APIJSONBoot-MultiDataSource)\n\n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\n有问题可以去 Tencent/APIJSON 提 issue \u003cbr /\u003e\nhttps://github.com/Tencent/APIJSON/issues/36\n\n\u003cbr /\u003e\u003cbr /\u003e\n\n#### 点右上角 ⭐Star 支持一下，谢谢 ^_^\n#### Please ⭐Star this project ^_^\nhttps://github.com/APIJSON/apijson-iotdb\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapijson%2Fapijson-iotdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapijson%2Fapijson-iotdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapijson%2Fapijson-iotdb/lists"}