2
0
mirror of https://github.com/tenrok/event-scheduling.git synced 2026-06-20 20:00:38 +03:00

feat: added db seeding

This commit is contained in:
Dipesh Dulal
2021-01-16 10:20:43 +05:45
parent 0b1fd56cf6
commit 0650161d8f
2 changed files with 20 additions and 1 deletions
+3 -1
View File
@@ -25,6 +25,8 @@ func main() {
db := initDBConnection()
seedDB(db)
rows, err := db.Query("SELECT id, name FROM public.test")
if err != nil {
@@ -43,7 +45,7 @@ func main() {
go func() {
for range interrupt {
log.Print("Interrupt received closing...")
log.Println("\n❌ Interrupt received closing...")
cancel()
}
}()