updated readme and Find*ByFilter godoc comment

This commit is contained in:
Gani Georgiev
2023-07-08 14:01:02 +03:00
parent 736e9673ad
commit a557aa35f5
2 changed files with 9 additions and 4 deletions
+6
View File
@@ -230,6 +230,9 @@ func (dao *Dao) FindFirstRecordByData(
// If the limit argument is <= 0, no limit is applied to the query and
// all matching records are returned.
//
// NB Don't put untrusted user input in the filter string as it
// practically would allow the users to inject their own custom filter.
//
// Example:
//
// dao.FindRecordsByFilter("posts", "title ~ 'lorem ipsum' && visible = true", "-created", 10)
@@ -291,6 +294,9 @@ func (dao *Dao) FindRecordsByFilter(
// FindFirstRecordByFilter returns the first available record matching the provided filter.
//
// NB Don't put untrusted user input in the filter string as it
// practically would allow the users to inject their own custom filter.
//
// Example:
//
// dao.FindFirstRecordByFilter("posts", "slug='test'")