Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(path string) (sqldb io.WriteCloser, err error)
New function will take in a path to a .db file; and create a new instance of a SQLite3 object; returning an io.WriteCloser and an error.
func WithSQLite ¶
func WithSQLite(path string) log.LoggerConfig
WithSQLite function takes in a path to a .db file, and a table name; and returns a LoggerConfig so that this type of writer is defined in a Logger
Types ¶
type SQLite ¶
type SQLite struct {
// contains filtered or unexported fields
}
SQLite struct is a wrapper for a SQLite database to be used as a Log Writer
func (*SQLite) Close ¶
Close method is implemented for compatibility with the Database interface.
While this ORM doesn't force users to close the connection, MongoDB does, and the method should be available for use
Click to show internal directories.
Click to hide internal directories.