mirror of
https://github.com/glebarez/go-sqlite.git
synced 2025-10-06 00:06:56 +08:00

modified: Makefile new file: all_linux_test.go renamed: all_test.go -> all_test_windows.go new file: doc.go new file: generate_linux.go new file: generate_windows.go modified: generator.go new file: generator_windows.go modified: internal/bin/bin_linux_386.go modified: internal/bin/bin_linux_amd64.go modified: main.c modified: sqlite.go modified: sqlite_go18.go new file: sqlite_windows.go
52 lines
1.5 KiB
Go
52 lines
1.5 KiB
Go
// Copyright 2017 The Sqlite Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Package sqlite is an in-process implementation of a self-contained,
|
|
// serverless, zero-configuration, transactional SQL database engine. (Work In Progress)
|
|
//
|
|
// Changelog
|
|
//
|
|
// 2017-06-05 Linux/Intel no more uses the VM (cznic/virtual).
|
|
//
|
|
// 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
|
|
// is not (yet) a priority. When this virtual machine approach, hopefully,
|
|
// reaches a reasonable level of completeness and correctness, the plan is to
|
|
// eventually mechanically translate the IR form, produced by
|
|
// http://github.com/cznic/ccir, to Go. Unreadable Go, presumably.
|
|
//
|
|
// Even though the translation to Go is now done for Linux/Intel, the package
|
|
// status is still as described above, it's just closer to the alpha release in
|
|
// this respect. The alpha release is due when the C runtime support of SQLite
|
|
// in cznic/crt will be complete.
|
|
//
|
|
// Supported platforms and architectures
|
|
//
|
|
// See http://github.com/cznic/ccir. To add a newly supported os/arch
|
|
// combination to this package try running 'go generate'.
|
|
//
|
|
// Sqlite documentation
|
|
//
|
|
// See https://sqlite.org/docs.html
|
|
package sqlite
|