Skip to content

Async Promise Support

Garry but Spinning edited this page Jul 1, 2021 · 1 revision

Explaination

Sqlier has builtin support for util.Promise, this allows you to do things in a semi-asynchronous way through coroutines

Methods

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()
Clone this wiki locally