Comments (5)
I've been thinking about the same thing lately :) As I see it, there is no need for a full-fledged SQLime UI in this use case (with sharing, import, settings etc). What we probably need is a widget capable of running SQL queries and showing the results.
Something like this:
┌───────────────────────────────────────────┐
│ select * from employees │
│ order by salary; │
│ │
│ run ► │
└───────────────────────────────────────────┘
✓ 10 rows, took 2 ms
┌────┬───────┬────────┬────────────┬────────┐
│ id │ name │ city │ department │ salary │
├────┼───────┼────────┼────────────┼────────┤
│ 11 │ Diane │ London │ hr │ 70 │
│ 12 │ Bob │ London │ hr │ 78 │
│ 21 │ Emma │ London │ it │ 84 │
│ 22 │ Grace │ Berlin │ it │ 90 │
│ 31 │ Cindy │ Berlin │ sales │ 96 │
│ 32 │ Dave │ London │ sales │ 96 │
│ 33 │ Alice │ Berlin │ sales │ 100 │
│ 23 │ Henry │ London │ it │ 104 │
│ 24 │ Irene │ Berlin │ it │ 104 │
│ 25 │ Frank │ Berlin │ it │ 120 │
└────┴───────┴────────┴────────────┴────────┘
Would this be enough in your opinion?
from sqlime.
Okay, here we go! See the Executable SQL Examples in JavaScript. I've decided to start with a lightweight widget and add the full playground widget later.
from sqlime.
@nalgeon Yep, that looks pretty good place to start.
from sqlime.
Maybe keep the ○ tables
as that allows discovery when the example is more complex.
from sqlime.
I'm pretty happy with the results for now. But if you have a real-world use case that requires a full-blown Sqlime playground as a widget — let me know.
from sqlime.
Related Issues (18)
- Getting json response from query? HOT 2
- No message if gist response 403 HOT 1
- Failed to save database to GitHub: got 500 status code if try save data HOT 2
- Failed to save database to GitHub: got 500 status code if try save data HOT 1
- Feature Request: Clear data if zero rows returns HOT 1
- select query with the duplicate column names does not work correctly HOT 1
- Using multiple databases when creating an html document with interactive sql examples? HOT 7
- Dot commands are given as SQL errors HOT 3
- feat: improve query editor HOT 1
- Not obvious when running SQL if it's updated. HOT 3
- Feature Request: Take DB URL to load in the host url HOT 1
- Support larger >1GB sqlite databases HOT 1
- "Canned" queries for idiot-proofing the I/F . . HOT 1
- Saving a link to web hosted database rather than the downloaded database HOT 1
- Support connections to remotely hosted sqlite databases HOT 1
- Sqlitewasm HOT 4
- Run only selected query from the editor HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqlime.