@live-change/framework
Advanced tools
Comparing version 0.4.4 to 0.4.5
@@ -31,2 +31,6 @@ const utils = require("../utils.js") | ||
const indexRequestSettings = { | ||
requestTimeout: 10 * 60 * 1000 // 10 minutes? | ||
} | ||
async function createIndex(table, indexName, index) { | ||
@@ -52,3 +56,3 @@ console.log("CREATE INDEX", index) | ||
if(Array.isArray(index.property)) throw new Error("multi indexes on multiple properties are not supported!") | ||
await dao.request(['database', 'createIndex'], database, indexName, `(${ | ||
await dao.requestWithSettings(indexRequestSettings, ['database', 'createIndex'], database, indexName, `(${ | ||
async function(input, output, { table, property }) { | ||
@@ -83,3 +87,3 @@ const values = (obj) => { | ||
const properties = (Array.isArray(index.property) ? index.property : [index.property]).map(p => p.split('.')) | ||
await dao.request(['database', 'createIndex'], database, indexName, `(${ | ||
await dao.requestWithSettings(indexRequestSettings, ['database', 'createIndex'], database, indexName, `(${ | ||
async function(input, output, { table, properties }) { | ||
@@ -86,0 +90,0 @@ const mapper = (obj) => ({ |
{ | ||
"name": "@live-change/framework", | ||
"version": "0.4.4", | ||
"version": "0.4.5", | ||
"description": "Live Change Framework - ultimate solution for real time mobile/web apps", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
147095
4067