About
41 |42 | Sqlime is an online SQLite playground 43 | for debugging and sharing SQL snippets. 44 |
45 |
Sqlime is like JSFiddle, but for SQL instead of JavaScript
49 |Here are some notable features:
53 | 54 |🔋 Full-blown database in the browser
55 |56 | Sqlime is backed by the latest version of SQLite via the 57 | sqlean.js project. 58 | It provides a full-featured SQL implementation, including indexes, triggers, 59 | views, transactions, CTEs, window functions and execution plans. 60 |
61 |62 | It also includes essential SQLite extensions, from math statistics and 63 | regular expressions to hash functions and dynamic SQL. 64 |
65 | 66 |🔌 Connect any data source
67 |68 | Connect any local or remote SQLite database. Both files and URLs 69 | are supported. For example, try loading the 70 | Employees database 71 | from the GitHub repo. 72 |
73 | 74 |🔗 Save and share with others
75 |76 | Sqlime saves both the database and the queries to GitHub 77 | so that you can revisit them later or share them with a colleague. 78 | The database is stored as a plain text SQL dump, so it's easy to 79 | read the code or import data into PostgreSQL, MySQL, 80 | or other databases. 81 |
82 |83 | For example, here is the 84 | gist 85 | for the Employees database, and here is the 86 | sharing link for it. 87 |
88 | 89 |🤖 Ask AI
90 |91 | Connect an OpenAI account to get help with your queries 92 | from the state-of-the-art ChatGPT assistant. 93 |
94 |
AI can explain, teach, and troubleshoot your SQL
98 |✨ Interactive examples
102 |103 | With Codapi, 104 | you can turn static SQL code in your articles or blog posts 105 | into interactive examples. 106 |
107 |
📱 Mobile friendly
112 |113 | Most playgrounds are not meant for small screens. Sqlime 114 | was specifically designed and tested on mobile devices. 115 |
116 |
120 | No need to zoom or aim at tiny buttons — everything 121 | looks and works just fine 122 |
123 |🔒 Secure and private
127 |128 | There is no server. Sqlime works completely in the browser. 129 | GitHub and OpenAI credentials are also stored locally. Queries are 130 | saved as private GitHub gists within your account. 131 | Your data is yours only. 132 |
133 | 134 |⌨️ Dead simple
135 |136 | Sqlime has zero third-party dependencies other than SQLite. 137 | Good old HTML, CSS, and vanilla JS — that's all. 138 | No frameworks, no heavy editors, no obsolete and vulnerable libraries. 139 | Just some modular 140 | open-source code, 141 | which is easy to grasp and extend. 142 |
143 | 144 |Keyboard shortcuts
145 |Here are some quick actions:
146 |win | 149 |mac | 150 |action | 151 |
---|---|---|
⌃↵ |
154 | ⌘↵ |
155 | run query | 156 |
⌃O |
159 | ⌘O |
160 | open file | 161 |
⌃U |
164 | ⌘U |
165 | open url | 166 |
⌃S |
169 | ⌘S |
170 | save and share | 171 |
⌃/ |
174 | ⌘/ |
175 | show tables | 176 |
Last but not least
180 | 181 |182 | 183 | ⭐️ Star the project 184 | on GitHub if you like it 185 |
186 |187 | 🚀 Subscribe 188 | to stay on top of new features 189 |
190 |191 | 🍋 Use Sqlime 192 | to debug and share SQL snippets 193 |
194 | 195 | 196 |