mirror of
https://github.com/allankoechke/pocketbase-cpp.git
synced 2026-12-01 17:29:03 +00:00
e7eb877cc423685161a4c2aa4f11ce2b57c8d7b0
PocketBase C++ SDK in Qt
NON OFFICIAL & EXPERIMENTAL C++ SDK for interacting with the PocketBase Web API.
Work still in progress, many breaking changes without notice as we try to match the official SDKs. Contributions are highly welcome.
Implemented Features
- Admin Service
- Records Service (partially)
- Auth With Password
- Auth with OAuth2
- Auth Refresh
- Request Email Verification
- Confirm Email Verification
- Request Password Reset
- Confirm Password Reset
- Request Email Change
- Confirm Email Change
- List auth methods
- List OAuth2 accounts
- Unlink OAuth2 account
- Crud Service
- Search/List
- GetList
- GetFullList
- GetFistListItem
- View (getOne)
- Create
- Update
- Delete
- Realtime (pending)
- Search/List
- Collections Service
- File Service
- Health Service
- Backup Service
- Log Service
- Realtime Service
- Settings Service
Installation
Add the library to your dependencies:
git clone https://github.com/codeartstudios/pocketbase-cpp.git
Import it in your C++ code:
#include "client.h"
auto pb = PocketBase('http://127.0.0.1:8090');
...
// authenticate as regular user
QJsonObject userData = pb.collection('users').authWithPassword('test@example.com', '123456');
// and much more...
More detailed API docs and copy-paste examples could be found in the API documentation for each service or in the Services section below.
Description
Languages
C++
97.5%
CMake
2.5%