gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS homebrew announcements > SQLDisplay - a simple visual database query program

#172562 - DragonMinded - Sun Feb 14, 2010 8:50 pm

So I got tired of scrolling through a flat text file to see if I had a particular game before buying it at a swap meet. A few weeks ago I buckled down and threw together a program that can load SQL dumps and display them on the DS. Included is the ability to load multiple tables and filter down based on the text of one or more columns. Since everything visual is gathered from the database it should be compatible with just about any SQL dump you throw at it.

Should support:
- CREATE, INSERT instructions
- As many entries or strings until memory runs out
- SQL style character escapes ('' not \')

Known issues:
- No scrolling for more than 9 tables in a database.
- Only handles "text" (should handle integers but I never tested it).
- Hacky UI.
- No support for multiple databases.
- "Contains" option is not implemented.

Possible additions or updates:
- Contains, group select, greater/less than support
- Better string handling to take less memory and run faster
- Your idea here!

To use this, DLDI patch with your particular card driver. Create a directory named database at the root (can be hidden if you want). Every file inside /database/ will be loaded and treated as a SQL table dump.

The file itself is available here. If there is sufficient interest in this application I might add more features as listed above.
_________________
Enter the mind of the dragon.

http://dragonminded.blogspot.com

Seriously guys, how hard is it to simply TRY something yourself?

#172581 - Darkflame - Tue Feb 16, 2010 9:12 pm

I could have done with a few years back when I was collecting Perplexcity Cards (think trading cards, but with pretty nifty puzzles on them).
I was always forgetting which ones I had...this would have be usefull.

Anyway, I might try this out later with an SQL dump from my review website.
_________________
Darkflames Reviews --
Make your own at;
Rateoholic:Reviews for anything, by anyone.

#172753 - Darkflame - Mon Mar 01, 2010 10:32 am

screen just froze on white when I tried it :-/
(using on a GBAMP, dldi patched etc).

Its probably my Sql. I'll have another go later.
_________________
Darkflames Reviews --
Make your own at;
Rateoholic:Reviews for anything, by anyone.