sqlite2go

command module
v1.0.1-0...-b7d21fd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2018 License: BSD-3-Clause Imports: 13 Imported by: 0

README

sqlite2go

Command sqlite2go ports SQLite to Go (Work In Progress)

Installation

To install or update sqlite2go

$ go get [-u] modernc.org/sqlite2go
Online documentation

GoDoc: godoc.org/modernc.org/sqlite2go

Usage

To generate a Go SQLite package:

$ sqlite2go [options]

To generate a standalone Go SQLite shell:

$ sqlite2go -shell [options]
Options
-D<name>
-D<name>=<value>

Define preprocessor macros. The first form is equivalent of -D<name>=1.

-h

Print usage to standard error and exit with status 2.

-o <path>

Write the result to <path>. Defaults to standard output.

-package <name>

Name the generated package. Ignored when -shell is used.

-shell

Generate the standalone SQLite shell program in package main.

Documentation

Overview

Command sqlite2go ports SQLite to Go. (Work In Progress)

Installation

To install or update sqlite2go

$ go get [-u] modernc.org/sqlite2go

Online documentation

GoDoc: https://godoc.org/modernc.org/sqlite2go

Usage

To generate a Go SQLite package:

$ sqlite2go [options]

To generate a standalone Go SQLite shell:

$ sqlite2go -shell [options]

Options

-crt <import-path>

Set the C-runtime package import path. Defaults to "modernc.org/crt".

-D<name>
-D<name>=<value>

Define preprocessor macros. The first form is equivalent of -D<name>=1.

-h

Print usage to standard error and exit with status 2.

-o <path>

Write the result to <path>. Defaults to standard output.

-package <name>

Name the generated package. Ignored when -shell is used.

-shell

Generate the standalone SQLite shell program in package main.

Directories

Path Synopsis
internal
c99
Package c99 is a C99 compiler front end.
Package c99 is a C99 compiler front end.
ccgo
Package ccgo translates c99 ASTs to Go source code.
Package ccgo translates c99 ASTs to Go source code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL