good morning!!!!

Skip to content
Snippets Groups Projects
Commit 1983457c authored by José Carlos Nieto's avatar José Carlos Nieto
Browse files

Using mgo 2.

parent 1b440a32
Loading
......@@ -4,17 +4,17 @@ gosexy is a general purpose framework for Go that provides sugar methods, types
## Installing gosexy
Use the command line
Before running this command, make sure you have the ``git``, ``hg`` (mercurial) and ``bzr`` (bazaar) source control systems installed on your system, those packages are available for many linux distros and also in [homebrew](http://mxcl.github.com/homebrew/) for OSX.
$ go get github.com/xiam/gosexy
## Sugar wrappers
* [gosexy/db](https://github.com/xiam/gosexy/tree/master/db) - A wrapper of database/sql, mgo and friends for querying to MongoDB, MySQL, PostgreSQL or SQLite3 databases in a consistent way.
* [gosexy/yaml](https://github.com/xiam/gosexy/tree/master/yaml) - A wrapper of [goyaml](http://launchpad.net/goyaml) for working with [YAML](http://www.yaml.org) formatted files.
## Sugar types
``Tuple`` is a shortcut for ``map[string]interface{}`` (generic dictionaries).
``List`` is a shortcut for ``[]interface{}`` (generic arrays).
## Sugar abstractions
* [gosexy/yaml](https://github.com/xiam/gosexy/tree/master/yaml) - A wrapper of [goyaml](http://launchpad.net/goyaml) for working with [YAML](http://www.yaml.org) formatted files.
......@@ -152,6 +152,7 @@ Return the first Item of the collection that matches all the provided conditions
You can use relations in your definition
// Relations example.
collection.FindAll(
// One-to-one relation with the table "places".
Relate{
......
......@@ -26,8 +26,8 @@ package db
import (
"fmt"
. "github.com/xiam/gosexy"
"launchpad.net/mgo"
"launchpad.net/mgo/bson"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"net/url"
"reflect"
"regexp"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment