Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection( db *sqlx.DB, configOptions ...ConnectionConfigurator, ) *Connection
type ConnectionConfigurator ¶ added in v0.0.2
type ConnectionConfigurator func(connection *Connection)
func WithPreRunHook ¶ added in v0.0.2
func WithPreRunHook(preRunHook PreRunHook) ConnectionConfigurator
type PreRunHook ¶ added in v0.0.2
type Query ¶
type Query struct { Select string From string Join string Where string OrderBy string GroupBy string Having string Limit string PrimaryKey string }
func GenerateQuery ¶
type ReadOnlyRepository ¶
type ReadOnlyRepository[T Entity] struct { // contains filtered or unexported fields }
func NewReadOnlyRepository ¶
func NewReadOnlyRepository[T Entity](connection *Connection) *ReadOnlyRepository[T]
type Repository ¶
type Repository[T Entity] struct { *ReadOnlyRepository[T] // contains filtered or unexported fields }
func NewRepository ¶
func NewRepository[T Entity](connection *Connection) *Repository[T]
Click to show internal directories.
Click to hide internal directories.