Unofficial Hacker News companion — get notified on comment replies, and more.

Lua as a Query Language (opens external site)

109 points by remywang 3 days ago | remy.wang | 32 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (2)

  1. Can you compare it to kysely.dev?
    Replies (1)
    1. Not a big fan of kysely's approach, but it's subjective.

        kysely: query = query.where('id', '=', criteria.id)
        tinqerjs: query = query.where(x => x.id === criteria.id)
      
      Tinqerjs adopts LINQ's expression-tree based approach. It's type-safe, and I suppose so is kysely.