<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Update on saving NoSQL data to MySQL]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/2280/migrating-nosql-data-store-license-from-one-mango-instance-to-another">Migrating NoSQL data store license from one Mango instance to another</a><br />
Is this feature available now? (i.e. Save NoSQL to MySQL or even CSV)?</p>
]]></description><link>https://forum.mango-os.com/topic/3233/update-on-saving-nosql-data-to-mysql</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 19:34:16 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/3233.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 24 Jan 2018 21:56:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Update on saving NoSQL data to MySQL on Wed, 24 Jan 2018 22:22:08 GMT]]></title><description><![CDATA[<p dir="auto">No that was never written. One can do either, but one would have to use a scripting data source and perhaps supporting points to make it happen.</p>
<pre><code>//Export all data for point cxtPnt into an SQL table...
var pvd = com.serotonin.m2m2.Common.databaseProxy.newPointValueDao();
pvd.getPointValuesBetween( cxtPnt.getDataPointWrapper().getId(), 0, java.lang.Long.MAX_VALUE, function(pvt) {
  sqlContextPoint.set('(' + pvt.getValue().toString() + ',' + pvt.getTime() + ')', pvt.getTime());
  //sqlContextPoint is an 'update tables only' point on an SQL data source
});
</code></pre>
<p dir="auto">And there would be a similar way to write those out to a file or wherever.</p>
]]></description><link>https://forum.mango-os.com/post/17058</link><guid isPermaLink="true">https://forum.mango-os.com/post/17058</guid><dc:creator><![CDATA[phildunlap]]></dc:creator><pubDate>Wed, 24 Jan 2018 22:22:08 GMT</pubDate></item></channel></rss>