diff options
| author | Jan Mercl <0xjnml@gmail.com> | 2017-04-21 01:30:47 +0200 |
|---|---|---|
| committer | Jan Mercl <0xjnml@gmail.com> | 2017-04-21 01:30:47 +0200 |
| commit | 32412eba3161086005fdb3568605fc43d66b7efe (patch) | |
| tree | 41bf6be5c8126a7ea6ccb2145a676d614d3d131c | |
| parent | ed3807ab478f18e3be176f504c811a7b4b7d9b8e (diff) | |
Add "Connecting to a database" docs section.
| -rw-r--r-- | sqlite.go | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -9,6 +9,24 @@ // Package sqlite is an in-process implementation of a self-contained, // serverless, zero-configuration, transactional SQL database engine. (Work In Progress) // +// Connecting to a database +// +// To access a Sqlite database do something like +// +// import ( +// "database/sql" +// +// _ "github.com/cznic/sqlite" +// ) +// +// ... +// +// +// db, err := sql.Open("sqlite", dsnURI) +// +// ... +// +// // Do not use in production // // This is an experimental, pre-alpha, technology preview package. Performance |
