mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-19 17:10:29 +00:00
items and location item count
This commit is contained in:
parent
11dcff450c
commit
f4f7123073
19 changed files with 1350 additions and 50 deletions
13
backend/ent/external.go
Normal file
13
backend/ent/external.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
package ent
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
||||
entsql "entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// Sql exposes the underlying database connection in the ent client
|
||||
// so that we can use it to perform custom queries.
|
||||
func (c *Client) Sql() *sql.DB {
|
||||
return c.driver.(*entsql.Driver).DB()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue