Hi Fam
Please find attached a pocketbase class based on the PocketBase JavaScript SDK
In your BANano project, you need to add this line in App Start
You declare a variable...
Then you initialize it
For any CRUD related actions, you need to define the schema. This tells the class the field names and what types are they. For example
There are various methods to add the schema fields.
Related Content
www.b4x.com
www.b4x.com
You can also perform a search to get all PocketBase related content in the forum
Please find attached a pocketbase class based on the PocketBase JavaScript SDK
In your BANano project, you need to add this line in App Start
B4X:
BANano.Header.AddJavascriptFile("pocketbase.umd.js")
You declare a variable...
B4X:
Private pb As SDUIPocketBase
Then you initialize it
B4X:
pb.Initialize(Me, "pb", "http://127.0.0.1:8090", "projects")
For any CRUD related actions, you need to define the schema. This tells the class the field names and what types are they. For example
B4X:
pb.SchemaAddText(Array("id", "name"))
There are various methods to add the schema fields.
Related Content
[Web] Mastering Pocketbase: Your Ultimate Guide to a Flawless SQLite WebServer Install on Windows!
Hi Fam Download PocketBase is a SQLite Webserver with some powerful functionality. Whilst it provides functionality to be a database, it also has a nice UI to manage that database. You can host it locally and also run it on a VPS. It does not support shared hosting. 1. Download and unzip this...
[BANano] Using PocketBase (Firebase Alternative) for your Apps.
Hi there. Update: This class is based on the JavaScript SDK available here, https://github.com/pocketbase/js-sdk REST API calls are dont internal to the library, if you want to use pure REST API, use BANanoFetch, the documentation should be easy to follow. I got to test the "Open Source...
You can also perform a search to get all PocketBase related content in the forum
Attachments
Last edited: