MCPcopy Index your code
hub / github.com/dreamsofcode-io/zenstats / CountAllVisits

Method CountAllVisits

internal/repository/visits.sql.go:17–22  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

15`
16
17func (q *Queries) CountAllVisits(ctx context.Context) (int64, error) {
18 row := q.db.QueryRow(ctx, countAllVisits)
19 var count int64
20 err := row.Scan(&count)
21 return count, err
22}
23
24const countVisitors = `-- name: CountVisitors :one
25SELECT COUNT(distinct(ip)) FROM visit WHERE visited_at > $1

Callers 1

ServeHTTPMethod · 0.80

Calls 1

QueryRowMethod · 0.80

Tested by

no test coverage detected