How aldirvn/ewhere works
ewhere is a small Go library for turning SQL templates with ?field placeholders into a cleaned query and ordered argument slice. The principal workflow is a caller passing a template and parameter map to Parse; Parse handles missing or empty values, scalar values, and slices, then removes temporary conditions before returning the result. The source shows this behavior within one implementation file; no separate storage, database execution, or external integration is present.
Main entry points: ewhere.go Parse template
Components 4
SQL parsing
- Parse template
ewhere.go - Slice IN clauses
ewhere.go
Other components
- Package caller
- Query and args
Connections 3
- Package caller → Parse template: calls
README.md - Parse template → Slice IN clauses: delegates slices
ewhere.go - Parse template → Query and args: returns
ewhere.go