{"id":48680764,"url":"https://github.com/forchid/sqlite-server","last_synced_at":"2026-04-26T20:00:45.171Z","repository":{"id":44514159,"uuid":"205549734","full_name":"forchid/sqlite-server","owner":"forchid","description":"High performance SQLite database server engine(standalone or embedded) based on C/S architecture","archived":false,"fork":false,"pushed_at":"2022-11-24T02:16:03.000Z","size":654,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-21T20:32:51.628Z","etag":null,"topics":["database","embedded","java","jdbc","pgjdbc","postgresql","server-engine","sql","sqlite","sqlite3","sqlited"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"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/forchid.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}},"created_at":"2019-08-31T13:43:30.000Z","updated_at":"2022-10-15T13:39:01.000Z","dependencies_parsed_at":"2022-09-03T21:31:57.314Z","dependency_job_id":null,"html_url":"https://github.com/forchid/sqlite-server","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/forchid/sqlite-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forchid%2Fsqlite-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forchid%2Fsqlite-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forchid%2Fsqlite-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forchid%2Fsqlite-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forchid","download_url":"https://codeload.github.com/forchid/sqlite-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forchid%2Fsqlite-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32310804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T19:15:34.056Z","status":"ssl_error","status_checked_at":"2026-04-26T19:15:15.467Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["database","embedded","java","jdbc","pgjdbc","postgresql","server-engine","sql","sqlite","sqlite3","sqlited"],"created_at":"2026-04-11T01:00:36.062Z","updated_at":"2026-04-26T20:00:45.165Z","avatar_url":"https://github.com/forchid.png","language":"Java","readme":"# SQLite Server (SQLited)\nA high performance [SQLite](https://www.sqlite.org/index.html) server engine based on the client/server architecture and org.xerial [sqlite-jdbc](https://github.com/xerial/sqlite-jdbc) project.\n+ Inherit all characteristics of SQLite that is small, fast, self-contained, high-reliability, full-featured, and ACID complete SQL database engine\n+ Implement a subset(PgServer) of [postgreSQL frontend/backend protocol](https://www.postgresql.org/docs/8.2/protocol.html) for supporting [pgjdbc](https://github.com/pgjdbc/pgjdbc) , psql, or ODBC\n+ Support md5(default), password and trust authentication methods in PgServer\n+ High performance(1000+ read/write transactions per second, \"select count(*)... where NON_INDEX_COLUMN condition\" returns in 1s on 10000000+ rows table, insert 50,000 ~ 100,000+ rows per second in [wal \u0026 normal](https://www.sqlite.org/pragma.html#pragma_journal_mode) mode)\n+ Add a feature of user, privilege and database management for SQLite server engine\n+ Use NIO infrastructure for supporting many connections by a few threads, SQLite server workers is default CPU cores\n+ Added some SQL statements that include \"create user\", \"alter user\", \"drop user\", \"show users\", \"grant\", \"revoke\", \"show grants\", \"create database\", \"show databases\", \"drop database\", \"show [full] processlist\", \"kill [connection|query] processor_id\" for administrative purposes\n+ Added some SQL functions such as \"user()\", \"current_user()\", \"version()\", \"server_version()\", \"database()\", \"current_database()\", \"start_time()\", \"sysdate()\", \"clock_timestamp()\", \"sleep(N)\"\n+ Added \"begin read only | read write\", \"set {transaction | session characteristics as transaction} read only | read write\" to support read only or read write transaction in a connection\n+ Support \"insert into ...{values()... | select ...} returning ...\" statement of PostgreSQL style\n+ Added \"select ... for update\" for support pessimistic lock by SQLite reserved lock\n+ Added \"show tables\", \"show columns\", \"show indexes\", \"show create table\", \"show create index\" statements for querying schema information\n+ Added \"truncate [table] tbl_name\" statement\n\n# Documents\n+ [How to build SQLite server](docs/Build.md)\n+ [How to init database and boot a SQLite server instance](docs/Bootstrap.md)\n+ [SQLite SQL extension](docs/SQLExtension.md)\n\n# Examples\n1. Standalone SQLite server\n\nConsole 1 Start SQLite server\n```shell\n$./bin/initdb.sh -D ./data -p 123456 -d test\n$./bin/startup.sh -D ./data \u0026\n2019-12-08 15:15:59.024 [SQLite PG server] INFO  org.sqlite.server.SQLiteServer.listen(565) - \nReady for connections on localhost:3272, version 8.2.23-SQLited 0.3.29\n```\nConsole 2 Connect to SQLite server then execute query\n```shell\n$psql -U root -p 3272 test\nThe user root's password:\npsql (11.0, Server 8.2.23)\nInput \"help\" for help information.\n\ntest.db=\u003e \\timing on\nTiming on\ntest.db=\u003e select count(*) from accounts;\n count(*)\n----------\n 32011001\n(Rows 1)\n\n\nTime: 338.081 ms\ntest.db=\u003e select balance, count(*) from accounts where balance \u003e 1000 group by balance limit 2;\n balance | count(*)\n---------+----------\n    1001 |      321\n    1002 |      321\n(Rows 2)\n\n\nTime: 9592.378 ms (00:09.592)\ntest.db=\u003e\n```\n\n2. Embedded SQLite server\n```java\nString[] args = {\"-p\", \"123456\", \"-d\", \"test\"};\nSQLiteServer server = SQLiteServer.create(args);\nserver.initdb(args);\nserver.close();\n\nserver = SQLiteServer.create();\nserver.bootAsync();\n```\n","funding_links":[],"categories":["数据库"],"sub_categories":["Spring Cloud框架"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforchid%2Fsqlite-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforchid%2Fsqlite-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforchid%2Fsqlite-server/lists"}