Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/usox/harm

Active record/Table data gateway hybrid for hack strict mode
https://github.com/usox/harm

database hack hacklang hhvm orm postgresql

Last synced: 19 days ago
JSON representation

Active record/Table data gateway hybrid for hack strict mode

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/usox/harm.svg?branch=master)](https://travis-ci.org/usox/harm)

HaRM - Hack Relation Mapper
===========================

Goal
----

The main purpose of HaRM is to perform simple CRUD-Operations in hack strict
mode - that's it.

Usage
-----

- Create a .harm file containing the database structure (see `tests/sample.harm` for a
boilerplate).
- Generate interface `./bin/harmgen interface > MyTableInterface.hh`
- Generate table `./bin/harmgen table > MyTable.hh`
- Use your existing PDO instance for the database connection

See the generated interface for further information.