good morning!!!!

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

Adding images from the main doc's site.

parent 0db30646
Branches
Tags
No related merge requests found
# upper.io/db # upper.io/db
<img src="https://upper.io/images/icon.svg" width="128" />
[![Build Status](https://travis-ci.org/upper/db.png)](https://travis-ci.org/upper/db)
## The `db` package
![Upper.io](https://upper.io/db/res/general.png)
`upper.io/db` is a [Go][2] package that allows developers to communicate with `upper.io/db` is a [Go][2] package that allows developers to communicate with
different databases through the use of *adapters* that wrap well-supported different databases through the use of *adapters* that wrap well-supported
database drivers. database drivers.
[![Build Status](https://travis-ci.org/upper/db.png)](https://travis-ci.org/upper/db)
## Is `upper.io/db` an ORM? ## Is `upper.io/db` an ORM?
`upper.io/db` is not an ORM in the sense that it does not tell you how to `upper.io/db` is not an ORM in the sense that it does not tell you how to
...@@ -15,7 +21,9 @@ being a tool that deals with common operations on different databases: ...@@ -15,7 +21,9 @@ being a tool that deals with common operations on different databases:
```go ```go
// This code works the same for all supported databases. // This code works the same for all supported databases.
var people []Person var people []Person
res = col.Find(db.Cond{"name": "Max"}).Limit(10).Sort("-last_name") res = col.Find(db.Cond{"name": "Max"}).Limit(10).Sort("-last_name")
err = res.All(&people) err = res.All(&people)
``` ```
...@@ -24,6 +32,8 @@ ORM that rather stays out of the way. ...@@ -24,6 +32,8 @@ ORM that rather stays out of the way.
## Supported databases ## Supported databases
![Adapters](https://upper.io/db/res/adapters.png)
`upper.io/db` attempts to provide full compatiblity for [CRUD][2] operations `upper.io/db` attempts to provide full compatiblity for [CRUD][2] operations
across adapters. Some other operations (such *transactions*) are supported only across adapters. Some other operations (such *transactions*) are supported only
on specific database adapters, such as MySQL, PostgreSQL and SQLite. on specific database adapters, such as MySQL, PostgreSQL and SQLite.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment