aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Mercl <0xjnml@gmail.com>2017-04-21 01:30:47 +0200
committerJan Mercl <0xjnml@gmail.com>2017-04-21 01:30:47 +0200
commit32412eba3161086005fdb3568605fc43d66b7efe (patch)
tree41bf6be5c8126a7ea6ccb2145a676d614d3d131c
parented3807ab478f18e3be176f504c811a7b4b7d9b8e (diff)
Add "Connecting to a database" docs section.
-rw-r--r--sqlite.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/sqlite.go b/sqlite.go
index 5f39070..e6fd02c 100644
--- a/sqlite.go
+++ b/sqlite.go
@@ -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