Porting Haskell Selda to PureScript.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/Database/Selda
test
.gitignore
LICENSE
README.md
psc-package.json

README.md

purescript-little-selda ... is dead!

Long live the purescript-selda!

So just go directly to purescript-selda !

This prototype was a "literal port" of selda. It has nearly accomplished its mission as it had proven that we can use PureScript records to build queries and rows to represent tables.

It can rest in peace now.

Kamirus implementation is a complately new attempt with clear design and nicer API :-)

About

An attempt to port Haskell Selda to Purescript. Pre-α stage.

It seems that I'm able to use wonderful purescript records instead of inductive tuples from original library - please check test/Integration/Postgresql.purs for details.

Testing

$ pulp test --main 'Test.Integration'

Progress of migration

  • Basic table representation
  • Table/schema validation function (for postgresql)
  • Basic select from table
  • Restrict (WHERE clause)
  • Limit
  • Order
  • Left Join
  • Inner Join
  • Group by
  • Aggregation functions
  • Insert (prototype is specialized to postgresql with RETURNING)
  • Delete
  • Update
  • Upsert
  • Backend separation (currently all is tested against postgresql)
  • Support for postgresql enums