Brijesh's Git Server — aegis @ main

Successor to whodis

internal/database/close.go (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
package database

import (
	"log"

	_ "github.com/jackc/pgx/v5/stdlib"
)

func (s *service) Close() error {
	log.Printf("Disconnected from database: %s", database)
	return s.db.Close()
}