Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 604 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 604 Bytes

Argo

Build Status

A REST API in Go.

Given an aspect schema:

import (
    sql "github.com/aodin/aspect"
)

var usersDB = sql.Table("users",
    sql.Column("id", sql.Integer{}),
    sql.Column("name", sql.String{}),
    sql.Column("age", sql.Integer{}),
    sql.Column("password", sql.String{}),
    sql.PrimaryKey("id"),
)

Create a REST resource with the table and a aspect.Connection:

users := Resource(
    conn,
    Table(usersDB),
)

Happy Hacking,

aodin