RSS
Posted in code
ARTICLE 0 comments
01/28 2010

seltzer, A Simple Javascript Interface for SQLite in Adobe AIR

I’ve recently started my first project using Adobe AIR.  When it came out a few years ago I did what most people did and said, “Oh, cool”, and then immediately forgot about it.  But after reviewing several ways of solving this latest project, we realized that AIR was perfect.

AIR lets you choose what you develop with: Flex, Flash or Javascript+HTML+CSS.  I chose Javascript because lately I’ve seen how powerful of a language it can be.  Also I don’t know Flash or Flex :)

The AIR javascript API has support for SQLite databases which is totally awesome.  My project has a fairly simple database and I wanted an easy way to interact with it.  Thus, I created seltzer.  I don’t really know why I called it that, I guess AIR reminds me of airy things.  Like alka-seltzer?

You can download/fork/ignore completely the project on github.  I’ve written some unit tests with QUnit but it still needs a lot of work.  Hopefully by the end of my current project it will be breathing fire and lazer-blasting planets.  In a good way.

Here is an example of how the API works.  Like I said, it’s dead simple.

And here is a screenshot of the QUnit badassery:

Share

digg reddit facebook twitter google 
  1. Track comments via RSS 2.0 feed. Feel free to post the comment, or trackback from your web site.

    Currently there are no comments related to article "seltzer, A Simple Javascript Interface for SQLite in Adobe AIR".