{"id":13524585,"url":"https://github.com/froghub-io/ic-sqlite","last_synced_at":"2025-04-01T03:32:12.788Z","repository":{"id":65272194,"uuid":"522441037","full_name":"froghub-io/ic-sqlite","owner":"froghub-io","description":"Using sqlite on an internet computer(ICP)","archived":false,"fork":false,"pushed_at":"2023-03-14T12:23:09.000Z","size":1058,"stargazers_count":32,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T01:47:57.926Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/froghub-io.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":"2022-08-08T07:05:18.000Z","updated_at":"2025-01-27T06:53:52.000Z","dependencies_parsed_at":"2024-11-02T09:40:25.216Z","dependency_job_id":null,"html_url":"https://github.com/froghub-io/ic-sqlite","commit_stats":{"total_commits":19,"total_committers":3,"mean_commits":6.333333333333333,"dds":0.368421052631579,"last_synced_commit":"4efd51e47b16f115e4dfad721a0778a8b287c7e9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froghub-io%2Fic-sqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froghub-io%2Fic-sqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froghub-io%2Fic-sqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/froghub-io%2Fic-sqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/froghub-io","download_url":"https://codeload.github.com/froghub-io/ic-sqlite/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246578409,"owners_count":20799813,"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":[],"created_at":"2024-08-01T06:01:11.446Z","updated_at":"2025-04-01T03:32:12.374Z","avatar_url":"https://github.com/froghub-io.png","language":"Rust","funding_links":[],"categories":["Storage and Databases"],"sub_categories":["Candid implementations"],"readme":"## ICSQLite\nICSQLite is a cloud SQLite database on Internet Computer and provides SDK for developers to use.  \nOur goal is to help developers quickly migrate web2 applications to Internet Computer. \n\n\n## Usage\n\nIn your Cargo.toml:\n\n```toml\n[dependencies]\nic-sqlite = \"0.1.0\"\n```\n\n## Limitations \u0026 Suggestions\nLimited by the total number of cycles of a call, if the number of rows retrieved by a single SQL query exceeds a certain amount, the call will crash.\n\n#### SQL statement suggestions\n* Strictly follow the rules of database optimization\n* Index building must be an empty table\n* Where query must be filtered for primary key or index field\n* Less use NOT,!=,\u003c\u003e,!\u003c,!\u003e NOT EXISTS, NOT IN, NOT LIKE, OR, they will ignore the index and cause a full table scan\n\n#### [Performance benchmarks for SQL commands](https://github.com/froghub-io/ic-sqlite/tree/main/examples/bench)\n| SQL \u003cbr/\u003e commands               | performance counter \u003cbr/\u003e 1w single table data | performance counter \u003cbr/\u003e 10w single table data | performance counter \u003cbr/\u003e 50w single table data | performance counter \u003cbr/\u003e 100w single table data |\n|----------------------------------|------------------------------------------------|-------------------------------------------------|-------------------------------------------------|--------------------------------------------------|\n| create table                     | 1194347                                        | 1433766                                         | 2565609                                         | 4066020                                          | \n| create index \u003cbr/\u003e (empty table) | 884588                                         | 1122419                                         | 2241730                                         | 3601724                                          |\n| count                            | 209847                                         | 2995943                                         | 15183853                                        | 30392494                                         | \n | insert                           | 350256                                         | 349635                                          | 351731                                          | 355381                                           | \n| select \u003cbr/\u003e (where primary key) | 265363                                         | 265960                                          | 265345                                          | 268112                                           | \n| select \u003cbr/\u003e (where index field) | 312389                                         | 314594                                          | 314666                                          | 319276                                           | \n| select \u003cbr/\u003e (where like field)  | 178263088                                      | 1784671532                                      | limit for single message execution              | limit for single message execution               | \n| update \u003cbr/\u003e (where primary key) | 385492                                         | 389192                                          | 391599                                          | 394111                                           | \n| update \u003cbr/\u003e (where index filed) | 239384                                         | 237908                                          | 237993                                          | 240998                                           | \n| delete \u003cbr/\u003e (where primary key) | 429190                                         | 259541                                          | 419615                                          | 423064                                           |\n\n## [IC Canister Simple example usage](https://github.com/froghub-io/ic-sqlite/tree/main/examples/backend)\n\n## Data migration suggestions \u0026 Debugging\n* Provide an interface for executing sql statements with super-management authority\n* Export standard sql statements for offline data and upload in batches\n* Debugging Get the data by running the sql statement through the super-management interface","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffroghub-io%2Fic-sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffroghub-io%2Fic-sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffroghub-io%2Fic-sqlite/lists"}