package links-postgresql

  1. Overview
  2. Docs
Postgresql database driver for the Links Programming Language

Install

Dune Dependency

Authors

Maintainers

Sources

links-0.9.1.tbz
sha256=257ae57eb92b6fce793e01cd44706c60f30db17211f103aa124ac1fc157888ee
sha512=14d4e910817b836389d7045060e80a1641ece35aed9cdd1e2a0ca92972386d6a1da1725fb662567a9cd5ffa0c4d4a64185531353450bb893d2b0efeed3129210

Description

Postgresql database driver for the Links Programming Language

Published: 10 Feb 2020

README

Links: Linking Theory to Practice for the Web

Links helps to build modern Ajax-style applications: those with significant client- and server-side components.

A typical, modern web program involves many "tiers": part of the program runs in the web browser, part runs on a web server, and part runs in specialized systems such as a relational database. To create such a program, the programmer must master a myriad of languages: the logic is written in a mixture of Java, Python, and Perl; the presentation in HTML; the GUI behavior in Javascript; and the queries are written in SQL or XQuery. There is no easy way to link these: to be sure, for example, that an HTML form or an SQL query produces the type of data that the Java code expects. This is called the impedance mismatch problem.

Links eases the impedance mismatch problem by providing a single language for all three tiers. The system is responsible for translating the code into suitable languages for each tier: for instance, translating some code into Javascript for the browser, some into Java for the server, and some into SQL to use the database.

Links incorporates ideas proven in other programming languages: database-query support from Kleisli, web-interaction proposals from PLT Scheme, and distributed-computing support from Erlang. On top of this, it adds some new web-centric features of its own.

FEATURES

  • Allows web programs to be written in a single programming language

  • Call-by-value functional language

  • Server / Client annotations

  • AJAX

  • Scalability through defunctionalised server continuations.

  • Statically typed database access a la Kleisli

  • Concurrent processes on the client and the server

  • Statically typed Erlang-esque message passing

  • Polymorphic records and variants

  • An effect system for supporting abstraction over database queries whilst guaranteeing that they can be efficiently compiled to SQL

  • Handlers for algebraic effects on the server-side and the client-side

Dependencies (4)

  1. links = version
  2. postgresql
  3. dune >= "1.10.0"
  4. ocaml >= "4.06.0"

Dev Dependencies

None

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.