My name is Radek Wesolowski, and I currently focus on building businesses.
You can find my social profiles at https://r--w.com website.
PocketBase Go SDK
License: MIT License
My name is Radek Wesolowski, and I currently focus on building businesses.
You can find my social profiles at https://r--w.com website.
thank you for working on this project.
Is this golang client able to receive change events when Pocketbaae fires events ? It would need I presume to use a golang SSE lib.
I'm not sure if with your library is there a way to get a collection's document that has relations as attribute, and also get the relations. Is there any way to do this?
Hello
How to possibly upload files together with other data ?
type Payload struct {
File *os.File `json:"file"`
Field string `json:"field"`
}
file, err := os.Open("somefile.bin")
res, err := pocketbase.Create("files", Payload{
File: file
Field: "blabla"
})
Resty either takes in file as raw bytes or parses them separately https://github.com/go-resty/resty#multipart-files-upload. Sending files a raw bytes doesn't work either.
type Payload struct {
File []byte `json:"file"`
Field string `json:"field"`
}
Just a courtesy note to say that this project has been added to awesome-pocketbase ๐ธ
Auth-Store
Right now one cannot access the data, which pocketbase sends back when the authentication was successful.
The solution is to extend the authResponse
-struct, such that the record/admin
field of the JSON-Response is parsed into it. The data could be exposed by a function which takes in a struct and maps the data.
// after authentication
type Record struct {
ID string `json:"id"`
Username string `json:"username"`
Email string `json:"email"`
...
}
var record Record
client.AuthStore().Model(&record)
I think that the providing the struct from outside is the right choice here because the response could contain custom fields.
Hello @r--w
Whats ths status of this project? There's few pending PR's and the version with upstream Pocketbase is behind.
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.