2015-10-27 13:59:15 -07:00
|
|
|
/* Copyright 2015 Realm Inc - All Rights Reserved
|
|
|
|
* Proprietary and Confidential
|
|
|
|
*/
|
2015-08-13 09:12:48 -07:00
|
|
|
|
2015-12-01 14:52:38 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "js_util.hpp"
|
2015-12-01 19:46:31 -08:00
|
|
|
#include <memory>
|
2015-08-13 09:12:48 -07:00
|
|
|
|
|
|
|
namespace realm {
|
|
|
|
class Realm;
|
2015-11-20 14:05:18 -08:00
|
|
|
class Query;
|
2015-08-13 09:12:48 -07:00
|
|
|
typedef std::shared_ptr<Realm> SharedRealm;
|
|
|
|
}
|
|
|
|
|
|
|
|
JSClassRef RJSResultsClass();
|
|
|
|
JSObjectRef RJSResultsCreate(JSContextRef ctx, realm::SharedRealm realm, std::string className);
|
2015-11-10 15:58:04 -08:00
|
|
|
JSObjectRef RJSResultsCreate(JSContextRef ctx, realm::SharedRealm realm, std::string className, std::string query, std::vector<JSValueRef> args);
|
2016-02-17 20:48:27 -08:00
|
|
|
JSObjectRef RJSResultsCreate(JSContextRef ctx, realm::SharedRealm realm, const realm::ObjectSchema &objectSchema, realm::Query query, size_t argumentCount, const JSValueRef arguments[]);
|
|
|
|
JSObjectRef RJSResultsCreate(JSContextRef ctx, realm::SharedRealm realm, const realm::ObjectSchema &objectSchema, realm::Query query, bool live = true);
|
2016-02-17 20:39:29 -08:00
|
|
|
|