SQLite
#1
Posted 03 August 2011 - 10:28 PM
#2
Posted 04 August 2011 - 12:54 AM
#3
Posted 04 August 2011 - 01:04 AM
#4
Posted 04 August 2011 - 01:20 AM
#5
Posted 04 August 2011 - 01:24 AM
#6
Posted 04 August 2011 - 01:33 AM
#7
Posted 04 August 2011 - 12:58 PM
#8
Posted 04 August 2011 - 01:09 PM
AFAIK, the SQLite for small devs could be considered without additional frameworks like the MF.
Althoung is not the same, why not the protocol-buffers?
Cheers
#9
Posted 04 August 2011 - 01:35 PM
#10
Posted 07 August 2011 - 06:14 AM
#11
Posted 18 August 2011 - 12:27 AM
#12
Posted 17 November 2012 - 12:10 PM
#13
Posted 30 January 2013 - 07:57 AM
A custom DataTable class that is serializable can be useful for most storage applications. Simply serialize the the object to an SD card. If the application frequently updates data, you may wish to load the datatable each time the device starts and serialize after every few updates. Not so cool but very good and secure for non data-intensive applications.
#14
Posted 30 January 2013 - 06:59 PM
So how about this: could I run Puppy Linux (http://puppylinux.org) headless on the microSD card, along with a LAMP stack and then somehow query the LAMP stack from the Netduino using C# code? I'm thinking of having the Netduino make a port 80 request to a php page running on the Apache web server on the Linux install, querying the MySQL database via php and then returning the results as a string to the Netduino. If anyone knows how to do this or thinks it would work, please let me know.
I think you're over-complicating things. If I understand correctly, you're talking about 5 levels of abstraction above. What's your end goal? If you lay out your project end-to-end here, we might be able to find a simple way to do it.
What kind of data are you storing?
How often does it change?
How relational is it?
You might be able to use XML serialization or something, depending on the answers to these questions.
- NeonMika / Markus VV. likes this
#15
Posted 30 January 2013 - 10:42 PM
I also have been looking for SQL support, but as client. I attempted to bring over the GHI code, but ND does not seem to have the resources to pull it off. Is anyone here familiar with how to connect to a SQL server as a client? I ended up having to host a PHP to get the job done, but if I can get that type of thing running on a ND it would be much nicer.
#16
Posted 31 January 2013 - 04:26 PM
I also have been looking for SQL support, but as client. I attempted to bring over the GHI code, but ND does not seem to have the resources to pull it off. Is anyone here familiar with how to connect to a SQL server as a client? I ended up having to host a PHP to get the job done, but if I can get that type of thing running on a ND it would be much nicer.
I've looked at the SQL server native protocol a few times. It would be difficult to implement in a netduino - requires a full parser and such. It also would lock you in to SQL Server.
I think you did the right thing with an intermediate PHP layer. I think the only way to improve would be to try an implementation of Odata. It maps pretty well onto a simple database schema, allowing for schema changes without changing the intermediate level. And you'd be able to re-use that with any Odata service - your Windows Forms, WPF, and Silverlight and Netduino code could all use the same service! FTW!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users