Releases: pluja/pocketbase
Releases · pluja/pocketbase
v0.1.0
What's Changed
- Add possibility to login with any collection of type auth by @mladBlum in #2
- adds all endpoints for managing pocketbase-backups by @bbuehrig in #3
- Fixing linter-finding and vulnerabilities by @bbuehrig in #4
- adds records api-calls to manage and use auth on collections by @bbuehrig in #5
- add
One
andOneTo
methods to client
New Contributors
Full Changelog: v0.0.7...v0.1.0
v0.0.10
v0.0.9
v0.0.8
v0.0.7
What's new:
FullList
function
Inspired by official Pocketbase SDK, I added a new FullList
function to the client. This allows to list a the full results of a collection query, without the need of batching requests or setting large Size
numbers to the query parameters.
example:
collection := pocketbase.CollectionSet[models.Exchange](p.Client, "services")
params := pocketbase.ParamsList{
Filters: "active=true",
}
response, err := collection.FullList(params)
Full Changelog: v0.0.61...v0.0.7
v0.0.6
- Adds support for
OneWithParams
Example usage:
func (p *PbClient) GetServiceById(id string) {
collection := pocketbase.CollectionSet[Service](p.Client, "services")
params := pocketbase.ParamsList{
Fields: "*,expand.attributes.*",
Expand: "attributes",
}
service, err := collection.OneWithParams(id, params)
if err != nil {
log.Error().Err(err)
}
}
Full Changelog: v0.0.5...v0.0.6