Create Database in MQX

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create Database in MQX

638 Views
hirentailor
Contributor I

Hi,

I am working with CodeWarrior v10.6 and of MQX v4.0 TWR-K60D100M.

I want to create a database that will be stored into SDCard.

Can abybody tell me exactly what procedure I need to follow? As there is no demo and docs provided for Database creation and use.

Regards,

Hiren Tailor

Tags (1)
0 Kudos
1 Reply

348 Views
hirentailor
Contributor I

Hi,

I did some progress.

I don't know what I need to do, but Sqlite C source code is provided in Sqlite website.

I know that MQX is not supporting database but I am trying because sqlite is available in C.

So what I did is,

1. download a source(amalgamation code) code from SQLite Download Page

2. Create a New Project in MQX4.0.

3. Copy the sqlite3.c source code into my project.

4. Now., Series of Error Starts ..... and still I am solving the endless errors ..

Another approach I did.,

1. download a sqlite3 (sqlite3_master) for windows  from SQLite Download Page

2. Create a New Project in MQX4.0.

3. Try to copy sqlite3.dll into my project, include .dll file(#include "sqlite3.dll") in main.c and called functions like., sqlite3_open(), sqlite3_exec(),  sqlite3_close().

4. But When I am Building my project that show me an error like: "undefined 'M' " in my sqlite3.dll...

I dont know what to do...What is that error indicating as I have never worked with .dll files

Can anybody tell me what steps I need to take...??

Any Helps.....

Regards,

Hiren Tailor

0 Kudos