~ubuntu-branches/ubuntu/vivid/qtdeclarative-opensource-src-gles/vivid

« back to all changes in this revision

Viewing changes to src/imports/localstorage/plugin.cpp

  • Committer: Package Import Robot
  • Author(s): Timo Jyrinki
  • Date: 2014-10-29 07:54:05 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20141029075405-gq1uzomnw3but9g2
Tags: 5.3.2-0ubuntu1
Sync package with qtdeclarative-opensource-src - 5.3.2-3ubuntu1 

Show diffs side-by-side

added added

removed removed

Lines of Context:
554
554
The API conforms to the Synchronous API of the HTML5 Web Database API,
555
555
\link http://www.w3.org/TR/2009/WD-webdatabase-20091029/ W3C Working Draft 29 October 2009\endlink.
556
556
 
557
 
The \l{localstorage/localstorage}{SQL Local Storage example} demonstrates the basics of
 
557
The \l{Qt Quick Examples - Local Storage}{SQL Local Storage example} demonstrates the basics of
558
558
using the Offline Storage API.
559
559
 
560
560
\section3 Open or create a databaseData
694
694
                V4THROW_SQL2(SQLEXCEPTION_VERSION_ERR, QQmlEngine::tr("SQL: database version mismatch"));
695
695
        } else {
696
696
            created = !QFile::exists(basename+QLatin1String(".sqlite"));
697
 
            database = QSqlDatabase::addDatabase(QLatin1String("QSQLITE"), dbid);
698
697
            if (created) {
699
698
                ini.setValue(QLatin1String("Name"), dbname);
700
699
                if (dbcreationCallback)
710
709
                }
711
710
                version = ini.value(QLatin1String("Version")).toString();
712
711
            }
 
712
            database = QSqlDatabase::addDatabase(QLatin1String("QSQLITE"), dbid);
713
713
            database.setDatabaseName(basename+QLatin1String(".sqlite"));
714
714
        }
715
715
        if (!database.isOpen())