-
Notifications
You must be signed in to change notification settings - Fork 3
Async Promise Support
Garry but Spinning edited this page Jul 1, 2021
·
1 revision
Sqlier has builtin support for util.Promise, this allows you to do things in a semi-asynchronous way through coroutines
These methods are only available when util.Promise
is enabled
All of these methods return a Promise object
Model:getAsync(identity, callback)
Model:findAsync(filter, callback)
Model:filterAsync(filter, callback)
ModelInstance:saveAsync()
ModelInstance:deleteAsync()