Documentation ¶
Overview ¶
Package database manages storage for bitly-lambda
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
Database represents the database and implements methods to perform operations on the database.
func (*Database) ExecWithTransaction ¶
ExecWithTransaction executes a query and wraps the execution in a transaction
func (*Database) InsertItem ¶
InsertItem inserts bitlink data into the database.
func (*Database) RunQuery ¶
func (db *Database) RunQuery(opts QueryOptions) (QueryResponse, error)
RunQuery run a query on the database and prints the result in a table
type QueryOptions ¶
type QueryOptions struct { Writer io.Writer Query string MergeCells bool RowLine bool Caption string Render bool }
QueryOptions represents the options you can have for a query and how the result will be rendered
type QueryResponse ¶
type QueryResponse struct { Rows [][]string ColumnNames []string Table *tablewriter.Table }
QueryResponse represents the response from a query
Click to show internal directories.
Click to hide internal directories.