good morning!!!!

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

Fixing docs

parent eb7b8d83
No related branches found
No related tags found
No related merge requests found
# gosexy/db/mongo # gosexy/db/mongo
This driver is a wrapper of [mgo](http://labix.org/mgo) This driver is a wrapper of [mgo](http://labix.org/mgo)
## Requirements ## Requirements
...@@ -29,7 +29,7 @@ And on Debian based distros ...@@ -29,7 +29,7 @@ And on Debian based distros
"github.com/xiam/gosexy/db/mongo" "github.com/xiam/gosexy/db/mongo"
) )
## Connecting to a database ## Connecting to a MongoDB database
sess := mongo.Session(db.DataSource{Host: "127.0.0.1"}) sess := mongo.Session(db.DataSource{Host: "127.0.0.1"})
......
# gosexy/db/mysql # gosexy/db/mysql
This driver is a wrapper of [go-mysql-driver](http://code.google.com/p/go-mysql-driver/) This driver is a wrapper of [go-mysql-driver](http://code.google.com/p/go-mysql-driver/)
## Requirements ## Requirements
...@@ -29,7 +29,7 @@ And on Debian based distros ...@@ -29,7 +29,7 @@ And on Debian based distros
"github.com/xiam/gosexy/db/mysql" "github.com/xiam/gosexy/db/mysql"
) )
## Connecting to a database ## Connecting to a MySQL database
sess := mysql.Session(db.DataSource{Host: "127.0.0.1"}) sess := mysql.Session(db.DataSource{Host: "127.0.0.1"})
......
# gosexy/db/postgresql # gosexy/db/postgresql
This driver is a wrapper of [pq](https://github.com/bmizerany/pq). In order to work with ``gosexy/db`` the original driver had to be [forked](https://github.com/xiam/gopostgresql) as the changes made to it are incompatible with some of pq's own features. This driver is a wrapper of [pq](https://github.com/bmizerany/pq). In order to work with ``gosexy/db`` the original driver had to be [forked](https://github.com/xiam/gopostgresql) as the changes made to it are incompatible with some of pq's own features.
## Installation ## Installation
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"github.com/xiam/gosexy/db/postgresql" "github.com/xiam/gosexy/db/postgresql"
) )
## Connecting to a database ## Connecting to a PostgreSQL database
sess := postgresql.Session(db.DataSource{Host: "127.0.0.1"}) sess := postgresql.Session(db.DataSource{Host: "127.0.0.1"})
......
# gosexy/db/sqlite # gosexy/db/sqlite
This driver is a wrapper of [sqlite3](https://github.com/mattn/go-sqlite3). In order to work with ``gosexy/db`` the original driver had to be [forked](https://github.com/xiam/gosqlite3) as the changes made to it are incompatible with some of sqlite3's own features. This driver is a wrapper of [sqlite3](https://github.com/mattn/go-sqlite3). In order to work with ``gosexy/db`` the original driver had to be [forked](https://github.com/xiam/gosqlite3) as the changes made to it are incompatible with some of sqlite3's own features.
## Requirements ## Requirements
...@@ -32,9 +32,9 @@ And on Debian based distros ...@@ -32,9 +32,9 @@ And on Debian based distros
"github.com/xiam/gosexy/db/sqlite" "github.com/xiam/gosexy/db/sqlite"
) )
## Connecting to a database ## Connecting to a SQLite3 database
sess := sqlite.Session(db.DataSource{Host: "127.0.0.1"}) sess := sqlite.Session(db.DataSource{Database: "/path/to/sqlite3.db"})
err := sess.Open() err := sess.Open()
defer sess.Close() defer sess.Close()
......
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