Lemmy.World
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
eifachposteBM to Kagi Small Web Appreciated RSS FeedEnglish · 3 days ago

syntaqlite: high-fidelity devtools that SQLite deserves

lalitm.com

external-link
message-square
0
link
fedilink
  • cross-posted to:
  • [email protected]
  • [email protected]
1
external-link

syntaqlite: high-fidelity devtools that SQLite deserves

lalitm.com

eifachposteBM to Kagi Small Web Appreciated RSS FeedEnglish · 3 days ago
message-square
0
link
fedilink
  • cross-posted to:
  • [email protected]
  • [email protected]
Most SQL tools treat SQLite as a “flavor” of a generic SQL parser. They approximate the language, which means they break on SQLite-exclusive features like virtual tables, miss syntax like UPSERT, and ignore the 22 compile-time flags that change the syntax SQLite accepts. So I built syntaqlite: an open-source parser, formatter, validator, and LSP built directly on SQLite’s own Lemon-generated grammar. It sees SQL exactly how SQLite sees it, no matter which version of SQLite you’re using or which feature flags you compiled with. It ships as a CLI, VS Code extension, Claude Code LSP plugin, and C/Rust libraries. There’s also a web playground which you can try now: paste any SQLite SQL and see parsing, formatting, and validation live in the browser, no install needed. Full documentation is available here. Here’s syntaqlite in action: Formatting with the CLI > syntaqlite fmt -e "select u.name,u.email,count(e.id) as events from users u join events e on e.user_id=u.id where u.signed_up_at>=date('now','-30 days') group by u.name,u.email having count(e.id)>10 order by events desc" SELECT u.name, u.email, count(e.id) AS events FROM users AS u JOIN events AS e ON e.user_id = u.id WHERE u.signed_up_at >= date('now', '-30 days') GROUP BY u.name, u.email HAVING count(e.id) > 10 ORDER BY events DESC; Validation with the CLI
alert-triangle
You must log in or # to comment.

Kagi Small Web Appreciated RSS Feed

kagismallweb

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 26 users / day
  • 206 users / week
  • 409 users / month
  • 530 users / 6 months
  • 38 local subscribers
  • 40 subscribers
  • 4.14K Posts
  • 87 Comments
  • Modlog
  • mods:
  • eifachposteB
  • UI: 0.19.16-8-g8cd34ec0
  • BE: 0.19.16-6-g1f680600c
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org