Matrix/utils/database/eventDatabaseConnector.go
2020-09-30 10:28:49 +02:00

29 lines
559 B
Go

package event
import (
"database/sql"
"nutfactory.org/Matrix/entities/event"
)
func initEventTable(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 createEvent(db *sql.DB, event *Event) err error {
}
func readEvent(db *sql.DB, id string) (event *Event, err error) {
}
func updateEvent(db *sql.DB, event *Event) err error {
}
func deleteEvent(db *sql.DB, id string) err error {
}