![]() ![]() Options can be given using the following format: KEYWORD=VALUE and multiple options can be combined with the & ampersand. This also applies when using an in-memory database instead of a file. Options should be URL-encoded (see url.QueryEscape). The database filename and options are separated by an ? (Question Mark). Options are append after the filename of the SQLite database. This is also known as a DSN (Data Source Name) string. When creating a new SQLite database or connection to an existing one, with the file name additional options can be given. ![]() API ReferenceĮxamples can be found under the examples directory. Important: because this is a CGO enabled package, you are required to set the environment variable CGO_ENABLED=1 and have a gcc compiler present within your path. However, after you have built and installed go-sqlite3 with go install /mattn/go-sqlite3 (which requires gcc), you can build your app without relying on gcc in future. If you want to build your app using go-sqlite3, you need gcc. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |