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
971a70f6
Commit
971a70f6
authored
Dec 11, 2014
by
José Carlos Nieto
Browse files
Options
Downloads
Patches
Plain Diff
Adding images from the main doc's site.
parent
0db30646
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+12
-2
12 additions, 2 deletions
README.md
with
12 additions
and
2 deletions
README.md
+
12
−
2
View file @
971a70f6
# upper.io/db
# upper.io/db
<img
src=
"https://upper.io/images/icon.svg"
width=
"128"
/>
[

](https://travis-ci.org/upper/db)
## The `db` package

`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.
[

](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

`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.
...
...
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