project-m36: Relational Algebra Engine

[ library, mit, program, public-domain, relational-algebra ] [ Propose Tags ] [ Report a vulnerability ]

A relational algebra engine which can be used to persist and query Haskell data types.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Flags

Manual Flags

NameDescriptionDefault
profiler

Enable Haskell-specific profiling support

Disabled
stack

build with stack and stackage

Disabled
haskell-scripting

enables Haskell scripting which links against GHC as a library

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.2, 0.3, 0.4, 0.5, 0.5.1, 0.6, 0.7, 0.8, 0.8.1, 0.9.0, 0.9.4, 0.9.5, 0.9.6, 0.9.7, 0.9.8, 0.9.9, 1.0.0, 1.0.1, 1.0.2, 1.1.0
Change log Changelog.markdown
Dependencies aeson (>=1.1), async, attoparsec, barbies, base (>=4.14 && <5), base16-bytestring (>=1.0.0.0), base64-bytestring, blaze-html, bytestring, Cabal, cassava (>=0.4.5.1 && <0.6), conduit, containers, convertible, cryptohash-sha256, curryer-rpc (>=0.3.7), data-interval, deepseq, deepseq-generics, deferred-folds, directory, either, exceptions, extended-reals, fast-builder, filepath, foldl, ghc (>=9.0), ghc-boot, ghc-paths, ghci, Glob, gnuplot, hashable, haskeline, http-api-data, http-conduit, http-types, HUnit, list-t, megaparsec (>=5.2.0 && <10), modern-uri, monad-parallel, MonadRandom, mtl, network, old-locale, optparse-applicative, parallel, parser-combinators, path-pieces, prettyprinter, project-m36, QuickCheck, quickcheck-instances, random, random-shuffle, recursion-schemes, resourcet, rset, scientific, scotty (>=0.22), semigroups, stm, stm-containers (>=1.0.0), streamly (==0.10.1), template-haskell, temporary, text, text-manipulate (>=0.2.0.1 && <0.4), time, transformers, unix, unordered-containers, uuid (>=1.3.12), vector, vector-instances, wai, wai-websockets, warp, warp-tls, websockets, Win32 (>=2.12), winery (>=1.4), zlib [details]
Tested with ghc ==9.2.8 || ==9.4.8 || ==9.6.6 || ==9.8.2 || ==9.10.1
License MIT
Author AgentM
Maintainer agentm@themactionfaction.com
Category Relational Algebra
Home page https://github.com/agentm/project-m36
Bug tracker https://github.com/agentm/project-m36/issues
Source repo head: git clone https://github.com/agentm/project-m36
Uploaded by agentm at 2024-08-26T02:42:40Z
Distributions
Executables handles, project-m36-websocket-server, Example-DerivingCustomTupleable, Example-CustomTupleable, Example-Plantfarm, Example-Hair, Example-Blog, Example-OutOfTheTarpit, Example-SimpleClient, bigrel, project-m36-server, sqlegacy, tutd
Downloads 5475 total (35 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for project-m36-1.1.0

[back to package description]

Ξ Project:M36 Relational Algebra Engine

Haskell Programming Language Public Domain Hackage Hackage dependency status Windows Build status Github Workflow status

Software can always be made faster, but rarely can it be made more correct.

Introduction

Project:M36 implements a relational algebra engine as inspired by the writings of Chris Date. Project:M36 supports both SQL and TutorialD interactive access.

Quick Install

Project:M36 can be downloaded and run via docker, which supports Windows 10+, macOS, and Linux.

Run docker run -it projectm36/project-m36 tutd to start the TutorialD command line interface.

Run docker run -it projectm36/project-m36 sqlegacy to start the SQLegacy (SQL dialect) command line interface.

Description

Unlike most database management systems (DBMS), Project:M36 is opinionated software which adheres strictly to the mathematics of the relational algebra. The purpose of this adherence is to prove that software which implements mathematically-sound design principles reaps benefits in the form of code clarity, consistency, performance, and future-proofing.

Project:M36 can be used as an in-process or remote DBMS.

Project:M36 is written entirely in the Haskell programming language.

Sample Session

asciicast

Use-Cases

Project:M36 supports multiple frontends which target different audiences.

  • learn about the relational algebra via TutorialD
  • use SQLegacy to learn how SQL differs from the relational algebra
  • store and manipulate databases
  • use Project:M36 as a native Haskell database backend

Community

Documentation

Introductory Materials

  1. Installation and Introduction to Project:M36
  2. Introduction to the Relational Algebra
  3. TutorialD Cheatsheet
  4. TutorialD via Jupyter Notebook Walkthrough
  5. TutorialD Tutorial
  6. 15 Minute Tutorial
  7. Developer's Change Log
  8. Simple Client API
  9. CSV Import/Export
  10. Developer Setup

Database Comparisons

  1. ACID Database Properties
  2. On NULL (in SQL)
  3. Reaching "Out of the Tarpit" with Project:M36
  4. An Architecture for Data Independence'

SQL Support

  1. Why SQLegacy?
  2. SQLegacy Documentation

Advanced Features

  1. Transaction Graph Operators
  2. ProjectM36.Client Library
  3. Data Frames for Sorting
  4. Adding New Data Types
  5. Database-Manipulating Functions
  6. Serving Remote ProjectM36 Databases
  7. Using Notifications
  8. Merge Transactions
  9. Atom (Value) Functions
  10. Trans-Graph Relational Expressions
  11. Isomorphic Schemas
  12. Replication
  13. Basic Operator Benchmarks
  14. Merkle Transaction Hashes
  15. Handling DDL Changes

Integrations

  1. WebSocket Server
  2. Jupyter Notebook Kernel
  3. Persistent Driver

Development

Project:M36 is developed in Haskell and compiled with GHC 9.2 or later.

  • The Third Manifesto: the philosophical basis for relational algebra engines
  • Rel: a TutorialD implementation against a BerkeleyDB backend
  • Andl: a new database language with SQLite and PostgreSQL backends
  • Coddie: a python-based relational algebra interpreter

Suggested Reading