Documentation ¶
Index ¶
- func Amend(args []string, dayOrDate string, month string, year string)
- func Delete(dayOrDate string, month string, year string)
- func ExecuteQuery(database *sql.DB, query string)
- func FormatMessage(message *string)
- func List(dayOrDate string, month string, subCommand string, year string)
- func OpenDatabase() (*sql.DB, error)
- func StructureDB()
- type Deserialize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteQuery ¶
Execute a query within the SQLite instance.
func FormatMessage ¶
func FormatMessage(message *string)
Format the message if there are quotes. Single quotes need to be doubled up (ie. `”`) when inserting into a SQL database.
Types ¶
type Deserialize ¶
type Deserialize struct { ShiftID int Date string Day string ClockIn string ClockInMessage string ClockOut string ClockOutMessage string ShiftDuration string Month string }
Struct used to store deserialized data from querying the SQLite instance.
func DeserializeRows ¶
func DeserializeRows(database *sql.DB, query string) []Deserialize
Run a SELECT SQL on the SQLite instance and return a slice of structs containing deserialized data.
Click to show internal directories.
Click to hide internal directories.