Documentation ¶ Overview ¶ Package tinysqlite provides utilities for handling sqlite. Index ¶ func Open(dsn string, config ...*Config) (*gorm.DB, error) type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Open ¶ func Open(dsn string, config ...*Config) (*gorm.DB, error) Open tries to open an instance of sqlite3 database and then return *gorm.DB instance to interact with it. Types ¶ type Config ¶ type Config struct { // Verbose specifies whether to log all executed queries. Verbose bool // GormOpt allows to specify custom function that will operate directly on *gorm.Config. GormOpt func(*gorm.Config) } Config holds a configuration for Open. Source Files ¶ View all Source files config.go doc.go open.go Click to show internal directories. Click to hide internal directories.