Matrix/utils/database/transactionDatabaseConnector.go

30 lines
637 B
Go
Raw Normal View History

2020-09-30 08:28:49 +00:00
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 {
}