Giter Club home page Giter Club logo

pocketbase's Introduction

My name is Radek Wesolowski, and I currently focus on building businesses.

You can find my social profiles at https://r--w.com website.

My github stats

pocketbase's People

Contributors

dependabot[bot] avatar hsedr avatar r--w avatar shynome avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pocketbase's Issues

extend authstore functionalites

Which part of the project should be enhanced?

Auth-Store

Description of the problem.

Right now one cannot access the data, which pocketbase sends back when the authentication was successful.

Solution

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.

List collection and get document relations

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?

(Binary) File Upload

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"`
}

Project Status

Hello @r--w

Whats ths status of this project? There's few pending PR's and the version with upstream Pocketbase is behind.

Thanks!

Reactive

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.