Documentation
¶
Index ¶
- type Handler
- func (h *Handler) Close() error
- func (h *Handler) ExecuteRead(dbName string, query string) ([]map[string]interface{}, error)
- func (h *Handler) ExecuteWrite(dbName string, query string) (int64, error)
- func (h *Handler) TestConnection(dbName string) error
- func (h *Handler) ValidateOperation(sql string, operation Operation) error
- type Operation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler manages database connections and operations
func NewHandler ¶
NewHandler creates a new database handler
func (*Handler) ExecuteRead ¶
ExecuteRead executes a read operation (SELECT) and returns the results
func (*Handler) ExecuteWrite ¶
ExecuteWrite executes a write operation (INSERT/UPDATE/DELETE) and returns affected rows
func (*Handler) TestConnection ¶
TestConnection attempts to establish a connection to the database and verify it works
Click to show internal directories.
Click to hide internal directories.