Remix.run Logo
nine_k 2 days ago

It's superficially tailwind-y, but in fact a sort of stenographic subset of SQL:

  db-{table}-{column}-where-{field}-{value}-limit-{n}-orderby-{field}-{asc|desc}

  db-users →
    SELECT * FROM users
  db-users-name →
    SELECT name FROM users
  db-users-where-id-1 →
    SELECT * FROM users WHERE id = 1
  db-posts-title-limit-10 →
    SELECT title FROM posts LIMIT 10
  db-products-orderby-price-desc →
    SELECT * FROM products ORDER BY price DESC
Certainly can result in some terribly inefficient access patterns, as there's no obvious syntax for joins. But enough for a toy project, and enough to hit the HN front page %)