diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-07-07 08:32:11 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-07-07 08:32:11 +0530 |
commit | 87b230e71a830e191dd5c14aa94a025c39792145 (patch) | |
tree | e85c8fc6154f9f1f9d7aef3045fd31f61a9498ee /db/query.sql | |
parent | a1692f732078adad272256639f7a3ff14c9e643a (diff) |
api/usage: init
Diffstat (limited to 'db/query.sql')
-rw-r--r-- | db/query.sql | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/db/query.sql b/db/query.sql index 75d5b61..cfea3f1 100644 --- a/db/query.sql +++ b/db/query.sql @@ -4,3 +4,6 @@ INSERT INTO Usage ( ) VALUES ( $1, $2, $3, $4, $5 ); + +-- name: GetUsage :one +SELECT SUM(Ingress) AS Ingress, SUM(Egress) AS Egress FROM Usage; |