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
095313db
Commit
095313db
authored
Oct 26, 2013
by
Carlos Nieto
Browse files
Options
Downloads
Patches
Plain Diff
Adding wrapper installation instructions.
parent
e025aa73
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
sqlite/README.md
+54
-4
54 additions, 4 deletions
sqlite/README.md
with
54 additions
and
4 deletions
sqlite/README.md
+
54
−
4
View file @
095313db
#
gosexy
/db/sqlite
#
upper.io
/db/sqlite
Please read the full docs, acknowledgements and examples at
This is a wrapper of the
[
github.com/mattn/go-sqlite3
][
1
]
package by
[
http://gosexy.org/db/wrappers/sqlite
][
1
]
.
[
Yasuhiro Matsumoto
][
2
]
.
[
1
]:
http://gosexy.org/db/wrappers/sqlite
Some changes had to be made to the original driver in order to work with
`upper.io/db`
, such as removing data conversion features, you can see and
contribute to the forked repository at
[
github.com/xiam/gosqlite3
][
3
]
.
## Installation
First, make sure you can install
[
go-sqlite3
][
1
]
```
go
#
OSX
brew
install
pkg
-
config
sqlite3
#
Debian
sudo
apt
-
get
install
pkg
-
config
libsqlite3
-
dev
#
Getting
the
package
go
get
github
.
com
/
mattn
/
go
-
sqlite3
```
If you succeed, installing the wrapper won't be any difficult.
```
go
go
get
upper
.
io
/
db
/
sqlite
```
## Usage
Import
[
db
][
4
]
and
[
sqlite
][
3
]
.
```
go
import
(
"upper.io/db"
// Import the wrapper to the blank identifier.
_
"upper.io/db/sqlite"
)
```
Open a database file.
```
go
settings
:=
db
.
Settings
{
Database
:
"./database.sqlite3"
,
}
sess
,
err
:=
db
.
Open
(
"sqlite"
,
settings
)
```
That's all! see the manual at
[
upper.io
][
4
]
for further documentation on
collections and how to create and query result sets.
[
1
]:
https://github.com/mattn/go-sqlite3
[
2
]:
http://mattn.kaoriya.net/
[
3
]:
https://github.com/xiam/gosqlite3
[
4
]:
https://upper.io
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