PocketBase

Undocumented in source.

Constructors

this
this(string pocketBaseURL, string authToken)

Constructs a new PocketBase instance with the default settings

Members

Functions

authWithPassword
RecordType authWithPassword(string table, string identity, string password, string token)

Authenticates on the given auth table with the provided credentials, returning a JWT token in the reference parameter. Finally returning the record of the authenticated user.

createRecord
RecordType createRecord(string table, RecordType item)

Creates a record in the given base table

createRecordAuth
RecordType createRecordAuth(string table, RecordType item)

Creates a record in the given authentication table

deleteRecord
void deleteRecord(string table, string id)

Deletes the provided record by id from the given table

deleteRecord
void deleteRecord(string table, RecordType record)

Deletes the provided record from the given table

getAuthToken
string getAuthToken()
Undocumented in source. Be warned that the author may not have intended to support it.
listRecords
RecordType[] listRecords(string table, ulong page, ulong perPage, string filter)

List all of the records in the given table (base collection)

listRecordsAuth
RecordType[] listRecordsAuth(string table, ulong page, ulong perPage, string filter)

List all of the records in the given table (auth collection)

setAuthToken
void setAuthToken(string authToken)
Undocumented in source. Be warned that the author may not have intended to support it.
updateRecord
RecordType updateRecord(string table, RecordType item)

Updates the given record in the given table, returning the updated record

viewRecord
RecordType viewRecord(string table, string id)

View the given record by id (base collections)

viewRecordAuth
RecordType viewRecordAuth(string table, string id)

View the given record by id (auth collections)

Mixin templates

MemberAndType
mixintemplate MemberAndType(alias record, alias typeEnforce, string memberName)
Undocumented in source.

Meta