html5sql 是一个轻量级的 JS 模块用于简化处理 HTML5 Web 数据库操作。其主要功能就是提供一个 SEQUENTIAL 结构用来在单事务中处理 SQL 语句。
示例代码:
$.get('Setup-Tables.SQL',function(sqlStatements){ html5sql.process( //This is the text data from the SQL file you retrieved sqlStatements, function(){ // After all statements are processed this function // will be called. }, function(error){ // Handle any errors here } ); });