good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
upper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
open
upper
Commits
ef9327ea
Commit
ef9327ea
authored
May 23, 2016
by
José Carlos Nieto
Browse files
Options
Downloads
Patches
Plain Diff
Updating README.
parent
96c3f214
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+10
-44
10 additions, 44 deletions
README.md
with
10 additions
and
44 deletions
README.md
+
10
−
44
View file @
ef9327ea
# upper.io/db [](https://travis-ci.org/upper/db) [](https://godoc.org/upper.io/db.v2)
# upper.io/db [](https://travis-ci.org/upper/db) [](https://godoc.org/upper.io/db.v2)
<center>
<img
src=
"http
s
://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


`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

`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-201
5
The upper.io/db authors. All rights reserved.
> Copyright (c) 2012-201
6
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment