Search completed in 1.06 seconds.
9 results for "mozIStorageFunction":
mozIStorageFunction
MozillaTechXPCOMReferenceInterfacemozIStorageFunction
storage/public/mozistoragefunction.idlscriptable please add a summary to this article.
...class squarefunction : public mozistoragefunction { public: ns_imethod onfunctioncall(mozistoragevaluearray *aarguments, nsivariant **_result) { print32 value; nsresult rv = aarguments->getint32(&value); ns_ensure_success(rv, rv); nscomptr<nsiwritablevariant> result = do_createinstance("@mozilla.org/variant;1"); ns_ensure_true(result, ns_error_out_of_memory); rv = result->setasint64...
...nscomptr<mozistoragefunction> func = new squarefunction(); ns_ensure_true(func, ns_error_out_of_memory); nsresult rv = dbconn->createfunction( ns_literal_cstring("square"), 1, func ); ns_ensure_success(rv, rv); // run some query that uses the function.
mozIStorageConnection
MozillaTechXPCOMReferenceInterfacemozIStorageConnection
tional] in boolean areadonly); void close(); void committransaction(); void createaggregatefunction(in autf8string afunctionname, in long anumarguments, in mozistorageaggregatefunction afunction); mozistorageasyncstatement createasyncstatement(in autf8string asqlstatement); void createfunction(in autf8string afunctionname, in long anumarguments, in mozistoragefunction afunction); mozistoragestatement createstatement(in autf8string asqlstatement); void createtable(in string atablename, in string atableschema); mozistoragependingstatement executeasync([array, size_is(anumstatements)] in mozistoragebasestatement astatements, in unsigned long anumstatements, [optional] in mozistoragestatementcallback acallback ); void executesi...
...see mozistoragefunction for sample code and more details.
... void createfunction( in autf8string afunctionname, in long anumarguments, in mozistoragefunction afunction ); parameters afunctionname the name of function to create, as seen in sql.
...And 2 more matches
Index
MozillaTechXPCOMIndex
210 mozistoragefunction interfaces, storage, xpcom, xpcom api reference this is an interface that must be implemented by consumers.
mozIStorageAggregateFunction
MozillaTechXPCOMReferenceInterfacemozIStorageAggregateFunction
nscomptr<mozistoragefunction> func = new standarddeviationfunc(); ns_ensure_true(func, ns_error_out_of_memory); nsresult rv = dbconn->createfunction( ns_literal_cstring("stddev"), 1, func ); ns_ensure_success(rv, rv); // run some query that uses the function.
mozIStorageProgressHandler
MozillaTechXPCOMReferenceInterfacemozIStorageProgressHandler
mozistoragefunction create a new sqlite function.
mozIStorageStatement
MozillaTechXPCOMReferenceInterfacemozIStorageStatement
mozistoragefunction create a new sqlite function.
mozIStorageValueArray
MozillaTechXPCOMReferenceInterfacemozIStorageValueArray
mozistoragefunction create a new sqlite function.
XPCOM Interface Reference
MozillaTechXPCOMReferenceInterface
girequestinidomutilsjsdistackframemoziasyncfaviconsmoziasynchistorymozicoloranalyzermozijssubscriptloadermozipersonaldictionarymoziplaceinfomoziplacesautocompletemoziregistrymozirepresentativecolorcallbackmozispellcheckingenginemozistorageaggregatefunctionmozistorageasyncstatementmozistoragebindingparamsmozistoragebindingparamsarraymozistoragecompletioncallbackmozistorageconnectionmozistorageerrormozistoragefunctionmozistoragependingstatementmozistorageprogresshandlermozistorageresultsetmozistoragerowmozistorageservicemozistoragestatementmozistoragestatementcallbackmozistoragestatementparamsmozistoragestatementrowmozistoragestatementwrappermozistoragevacuumparticipantmozistoragevaluearraymozitxttohtmlconvmozithirdpartyutilmozivisitinfomozivisitinfocallbackmozivisitstatuscallbacknsiabcardnsiaboutmodulensiabst...
Storage
MozillaTechXPCOMStorage
mozistoragefunction create a new sqlite function.