Sybase iAnywhere Sybase iAnywhere

Peering Behind the Browser


Exploring the World of Data Behind the Tags

header image

Introducing UltraLiteWeb – Taking Data Further

November 5th, 2009 · 4 Comments

I am excited to announce the beta availability of a new project from Sybase, UltraLiteWeb. UltraLiteWeb is a set of enhancements to the open source Gears project that aims to provide it with additional data management and synchronization capabilities.

Gears, an open source project first started a few years ago, was originally conceived to create more powerful web applications by enhancing browsers with new features and functionality. One of its original features was the ability for web applications to create local SQLite databases that it could use to store application data. However, one of the results of having web applications that can store local data is that you end up with multiple copies of the data that need to be resolved through synchronization. Unfortunately, the lack of integrated synchronization support within SQLite, along with the lack of encryption, makes it a difficult fit in enterprise scenarios.

UltraLiteWeb was designed to address these problems.

UltraLiteWeb is a patched build of Gears that enhances it by giving developers the option of using UltraLite as an alternative to SQLite. With UltraLiteWeb, developers can take advantage of the robust synchronization logic that is already integrated into UltraLite. By using UltraLiteWeb in conjunction with a MobiLink server, developers will be able to create robust, secure, data rich browser-based applications without needing to worry about all the complications of synchronization.

UltraLiteWeb introduces a new JavaScript API for communicating with the UltraLite databases that is unlike any of the other UltraLite APIs. This is because the UltraLiteWeb API is based off of the already existing Database API in Gears. A sample of the JavaScript API is shown below:

1
2
3
4
5
6
7
8
// create database
var db = sybase.ultraliteweb.factory.create('beta.uldatabase');
var options = {
  case:       "Respect",  // make database case-sensitive
  page_size:  "8k",       // set 8kb page size
  date_order: "MDY"       // set date order to be Month-Day-Year
};
db.open('database-cars', options);

UltraLiteWeb is available in beta for Firefox on Windows and Linux, and Internet Explorer on Windows. For more information, take a look at the About and FAQ pages. The UltraLiteWeb code is available under the Apache 2 license.

If you have any questions or feedback about UltraLiteWeb, please feel free to post them on the SQL Anywhere Web Development forum.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

Tags: Technology

4 responses so far ↓

  • 1 Data Rich Browser-based Applications get a big boost // Nov 5, 2009 at 11:52 am

    [...] a very informative post today, my colleague Eric Farrar introduced a cool new component in the SQL Anywhere family: [...]

  • 2 Dan // Nov 19, 2009 at 2:48 am

    Any support for Maemo or Android planned?

  • 3 Dan // Nov 19, 2009 at 2:50 am

    Does it work if I have Gears already installed?

    Nice work :) .

  • 4 Eric Farrar // Nov 25, 2009 at 3:03 pm

    As you probably saw, we currently are only supporting Firefox and
    Internet Explorer on our Beta release. However Gears is available on a
    number of other platforms (Android, Safari, IE on Windows Mobile, etc)
    in addition to those. We will only be planning to support platforms
    that are also supported by Gears.

    I understand the problems with having to install another extension,
    and the advantages of using HTML5 features that are already built into
    the browser. Since this particular project is based on a database
    (Ultralite) that is not available in browsers, I don’t see a way that
    it will be available without a browser extension in the near future.
    However, we are investigating ways we can synchronize HTML5-based
    databases.

    The browser extension are intended to co-exist with each other. You
    should be able to install UltraLiteWeb on a system that already has
    Gears installed. If you run into any problems, please report it on
    this forum.

Leave a Comment

Note that all comments are currently being moderated until I have a better handle on spam, so your comment may not appear for a couple of hours

Sybase Privacy policy