Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by remywang

11 hours ago

With some syntax sugar it looks almost exactly like SQL [1]. Here I’m showing the unsweetened edition for didactic purposes.

[1]: https://remy.wang/blog/prela.html

1 comment

remywang

Reply

troupo  10 hours ago

I think you'd want to format it like SQL blocks to separate various concepts and where data is coming from

    movie.with(
      company.s(country).eq("[us]"
    )
    .and(
      keyword.eq("character-name-in-title")
    )
    .select(
      title
      .and(
        cast.s(person).s(alias).s(text)
      )
    )

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities