mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-20 03:13:31 +01:00
updated readme and Find*ByFilter godoc comment
This commit is contained in:
1 parent
736e9673ad
commit
a557aa35f5
2 files changed
+9
-4
No files matched your search
@@ -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'")
|
||||
|
||||
Reference in new issue
Block a user