package transaction import ( "database/sql" "nutfactory.org/Matrix/entities/transaction" ) func initTransactionTable(db *sql.DB) err error { // TODO: Change to correct Table-Structure statement, err := db.Prepare("CREATE TABLE IF NOT EXISTS people (id INTEGER PRIMARY KEY, firstname TEXT, lastname TEXT)") statement.Exec() } func createTransaction(db *sql.DB, transaction *Transaction) err error { } func readTransaction(db *sql.DB, id string) (transaction *Transaction, err error) { } func updateTransaction(db *sql.DB, transaction *Transaction) err error { } func deleteTransaction(db *sql.DB, id string) err error { }