Skip to content
sqlite binding to qml
C++ Prolog
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitattributes
.gitignore
Makefile
Makefile.Debug
Makefile.Release
README
bookstore.db
bookstore.sqlite3.sql
main.cpp
main.qml
qlsqltablemodel.cpp
qlsqltablemodel.h
qml_sqltablemodel.pro

README

plugin or directly inject?
//currently, C++ maitain lifecycle of sqlmodel.
//if use pluginin, model could be use as "import sqltableview 1.0 as xxx""
//Do we need C++/qapp to manage sql object or qml?

//TODO
model should both editable
from C++ side, add setData, from QML call setData through binding methods

To do in jsondb        equivalents in sqlite

JsonDB.Partion    ~    Sql Tables
name                   setDatabaseName()
create(record,cb)      insert_row + insert(record)
remove(_uuid)          remove_row + delete from table where id = _uuid 
update([field, value], cb)  update(field, value)

JsonDb.query{
    query               query + refreash
    onFinished.         //TODOslot for C++ signal
    onResultReady       //what is the differenct?
    onStatusChanged     //this only used once
}

JsonDb.Notification?    //


JsonDbListModel{
	partition:          same as setDatabaseName()           
	query:              same as setDatabaseName()  
	sortOrder:          //TODO sql filter
	roleNames:          //define rolenames and number of rolename explicitly, a more generic approach?
}
Something went wrong with that request. Please try again.