good morning!!!!

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

Updating README.

parent 96c3f214
No related branches found
No related tags found
No related merge requests found
# upper.io/db [![Build Status](https://travis-ci.org/upper/db.svg?branch=v2)](https://travis-ci.org/upper/db) [![GoDoc](https://godoc.org/upper.io/db?status.svg)](https://godoc.org/upper.io/db.v2)
# upper.io/db [![Build Status](https://travis-ci.org/upper/db.svg?branch=v2)](https://travis-ci.org/upper/db) [![GoDoc](https://godoc.org/upper.io/db.v2?status.svg)](https://godoc.org/upper.io/db.v2)
<center>
<img src="https://upper.io/db.v2/images/icon.svg" width="256" />
<img src="http://beta.upper.io/db.v2/images/gopher.svg" width="256" />
</center>
## The `db` package
## The `db.v2` package
![Upper.io](https://upper.io/db.v2/res/general.png)
![upper.io](http://beta.upper.io/db.v2/res/general.png)
`db` is a [Go][2] package that allows you to communicate with different
databases through special *adapters* that wrap well-supported database drivers.
```
go get -u upper.io/db.v2
```
## Is `db` an ORM?
`db` is not an ORM in the sense that it does not tell you how to design your
application or how to validate your data. Instead of trying to lecture you,
`db` focuses on being a easy to user tool that helps you dealing with common
database operations.
```go
var people []Person
res = col.Find(db.Cond{"name": "Max"}).Limit(10).Sort("-last_name")
err = res.All(&people)
...
```
`db` can be considered a non-opinionated ORM that rather stays out of your way.
## Supported databases
![Adapters](https://upper.io/db.v2/res/adapters.png)
`db` attempts to provide full compatiblity for [CRUD][2] operations across all
its adapters. Some other operations (such *transactions*) are supported only
with specific database adapters, such as MySQL, PostgreSQL and SQLite.
* [MongoDB](https://upper.io/db.v2/mongo) via [mgo](http://godoc.org/labix.org/v2/mgo)
* [MySQL](https://upper.io/db.v2/mysql) via [mysql](https://github.com/go-sql-driver/mysql)
* [PostgreSQL](https://upper.io/db.v2/postgresql) via [pq](https://github.com/lib/pq)
* [QL](https://upper.io/db.v2/ql) via [ql](https://github.com/cznic/ql)
* [SQLite3](https://upper.io/db.v2/sqlite) via [go-sqlite3](https://github.com/mattn/go-sqlite3)
The `upper.io/db.v2` package for [Go][2] is a non-opinionated database access
layer for Go that provides a common interface to work with different data
sources such as PostgreSQL, MySQL, SQLite, QL and MongoDB.
## User documentation
See documentation for users at [upper.io/db.v2][1].
This is the source code repository, see examples and documentation at
[upper.io/db.v2][1].
## License
This project is licensed under the terms of the **MIT License**.
> Copyright (c) 2012-2015 The upper.io/db authors. All rights reserved.
> Copyright (c) 2012-2016 The upper.io/db authors. All rights reserved.
>
> Permission is hereby granted, free of charge, to any person obtaining
> a copy of this software and associated documentation files (the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment