signoz/pkg/sqlstore/sqlstore.go
Vibhu Pandey c574adc634
feat(sqlstore): add sqlstore package (#6835)
### Summary

Add `sqlstore` package
2025-01-17 15:54:48 +05:30

19 lines
412 B
Go

package sqlstore
import (
"database/sql"
"github.com/jmoiron/sqlx"
"github.com/uptrace/bun"
)
// SQLStore is the interface for the SQLStore.
type SQLStore interface {
// SQLDB returns the underlying sql.DB.
SQLDB() *sql.DB
// BunDB returns an instance of bun.DB. This is the recommended way to interact with the database.
BunDB() *bun.DB
// SQLxDB returns an instance of sqlx.DB.
SQLxDB() *sqlx.DB
}