最終更新:2017-12-30 (土) 05:13:05 (290d)  

Web SQL Database はてなブックマークを見る
Top / Web SQL Database

http://www.w3.org/TR/webdatabase/

SQLiteベース。Chrome,Opera,Safariで実装。Firefoxではサポートされない

クラスとか

window.openDatabase

  • interface WindowDatabase {
      Database openDatabase(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize, in optional DatabaseCallback creationCallback);
    };

Web SQL Database/Database?

  • interface Database {
      void transaction(in SQLTransactionCallback callback, in optional SQLTransactionErrorCallback errorCallback, in optional SQLVoidCallback successCallback);
      void readTransaction(in SQLTransactionCallback callback, in optional SQLTransactionErrorCallback errorCallback, in optional SQLVoidCallback successCallback);
    
      readonly attribute DOMString version;
      void changeVersion(in DOMString oldVersion, in DOMString newVersion, in optional SQLTransactionCallback callback, in optional SQLTransactionErrorCallback errorCallback, in optional SQLVoidCallback successCallback);
    };

Web SQL Database/SQLTransaction?

  • interface SQLTransaction {
      void executeSql(in DOMString sqlStatement, in optional ObjectArray arguments, in optional SQLStatementCallback callback, in optional SQLStatementErrorCallback errorCallback);
    };
    
    [Callback=FunctionOnly, NoInterfaceObject]
    interface SQLStatementCallback {
      void handleEvent(in SQLTransaction transaction, in SQLResultSet resultSet);
    };
    
    [Callback=FunctionOnly, NoInterfaceObject]
    interface SQLStatementErrorCallback {
      boolean handleEvent(in SQLTransaction transaction, in SQLError error);
    };

メモ

代替

使われどころ

関連