appwrite_dart_wrapper library

Classes

Req
Res
Result

Functions

buildExecution(Client c, {required String idFn, required String funName, bool xasync = false}) FnOptExecution
buildFnCreateRecord(Client client, {required String databaseId, required String collectionId}) FnOptRecord
Create
buildFnGetRecord(Client client, {required String databaseId, required String collectionId}) FnOptRecord
Get
buildFnQueryRecord(Client client, {required String databaseId, required String collectionId}) Future<DocumentList> Function(List<String>)
Query
buildFnUpdateRecord(Client client, {required String databaseId, required String collectionId}) FnOptRecord
Update
localTest(String fnName, Future start(Req req, Res res), {Req req = const Req(), Res res = const Res(), String desc = '', required Map<String, dynamic>? appwriteJson}) → dynamic
starter(dynamic req, dynamic res, BizFun biz, {bool log = true, bool debug = false, String? debugUserId, dynamic onError(Object e, StackTrace s)?}) Future<void>
debugUserId set null or uid, Preventing malicious override of vars
startWithGetIt(dynamic req, dynamic res, {GetIt? getIt, required Future<void> initDI(GetIt g), required BizFun setBiz(GetIt g), bool log = true, bool debug = false, String? debugUserId, dynamic onError(GetIt g, Object e, StackTrace s)?}) Future<void>
starter with GetIt
startWrapper(dynamic req, dynamic res, Future<Result> biz(Map<String, dynamic> headers, Map<String, dynamic> payload, Map<String, String> vars, Client client), {bool log = true, bool debug = false, String? debugUserId, dynamic onError(Object e, StackTrace s)?}) Future<void>
debugUserId set null or uid, Preventing malicious override of vars
withClient(dynamic req, dynamic res) → Client
获取服务端Client

Typedefs

BizFun = Future<Result> Function(Map<String, dynamic> headers, Map<String, dynamic> payload, Map<String, String> vars)
FnOptExecution = Future<Execution> Function({required Map<String, dynamic> data, bool? xasync2})
FnOptRecord = Future<Document> Function({Map? data, required String documentId})