MCPcopy
hub / github.com/gotify/server / Ping

Method Ping

database/ping.go:4–10  ·  view source on GitHub ↗

Ping pings the database to verify the connection.

()

Source from the content-addressed store, hash-verified

2
3// Ping pings the database to verify the connection.
4func (d *GormDatabase) Ping() error {
5 sqldb, err := d.DB.DB()
6 if err != nil {
7 return err
8 }
9 return sqldb.Ping()
10}

Callers

nothing calls this directly

Calls 1

PingMethod · 0.65

Tested by

no test coverage detected