From 32412eba3161086005fdb3568605fc43d66b7efe Mon Sep 17 00:00:00 2001 From: Jan Mercl <0xjnml@gmail.com> Date: Fri, 21 Apr 2017 01:30:47 +0200 Subject: Add "Connecting to a database" docs section. --- sqlite.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'sqlite.go') 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 -- cgit v1.2.3-70-g09d2