BagelDB class

BagelDB is a content management system with rich API features. For more info, visit here bageldb.com

BagelDB class is the base class for any bagelDB request, it must be given the api token created at app.bageldb.com

Constructors

BagelDB(String token, SP sp, bool logCurl)

Properties

bagelUsersRequest BagelUsersRequest
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
logCurl bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sp ↔ SP
getter/setter pair
token String
getter/setter pair

Methods

collection(String collection) BagelDBRequest
return a BagelDBRequest object for a specific collection
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
schema(String collection) BagelMetaRequest
Get information about the collection schema
toString() String
A string representation of this object.
inherited
uploadAssets(List<Map<String, dynamic>> assets) Future<BagelResponse>
selectedAsset expects a file stream, which can be obtained in Flutter using a File object from the file_picker package. Alternatively, it can also be a blob. assetLink can be a link to a file stored somewhere on the web, but the link should be accessible to the device. The method checks if assetLink exists and if not will use selectedAsset The request is sent via a FormData request. @NOTE ⚠️ Either assetLink or selectedAsset must be included but not both @param {List<Map<String, dynamic>>} assets - a slice of maps containing { 'selectedAsset', 'assetLink', 'fileName' }
users() BagelUsersRequest
return a BagelUsersRequest object to work with Bagel Users

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

asc String
no setter
desc String
no setter
equal String
no setter
greaterThan String
no setter
lessThan String
no setter
notEqual String
no setter
within String
used in GeoPoint Query for
no setter

Static Methods

geoPointQuery(dynamic lat, dynamic lng, dynamic distance) String
construct a geopoint query with a latitude longitude and the radius distance in meters to query the data
init({dynamic token, dynamic logCurl = false}) Future<BagelDB>