From: Loïc Collignon Date: Thu, 8 Feb 2018 10:06:33 +0000 (+0100) Subject: moved files to root folder. X-Git-Tag: flounder/5.99.1^0 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=91e32ea5d46e6f7f50a0f0bdbd1d7e8f513fc3bf;p=apps%2Fagl-service-data-persistence.git moved files to root folder. Change-Id: I7103241843736e1a5747253781485afa457a64d0 Signed-off-by: Loïc Collignon --- diff --git a/ll-database-binding/CMakeLists.txt b/CMakeLists.txt similarity index 100% rename from ll-database-binding/CMakeLists.txt rename to CMakeLists.txt diff --git a/README.md b/README.md index 1d1a1e8..fb420dc 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,38 @@ -# agl-service-data-persistence +# Database Binding +This binding provide a database API with key/value semantics. +The backend is currently a Berkeley DB. + +## Verbs +* **insert**: + This verb insert a key/value pair in the database. + If the key already exist, the verb fails. + +* **update**: + This verb update an existing record. + If the key doesn't exist, the verb fails. + +* **delete**: + This verb remove an existing key/value pair from the database. + If no matching record is found, the verb fails. + +* **read**: + This verb get the value associated with the specified key. + If no matching record is found, the verb fails. + +## Arguments +* The **read** and **delete** verbs need only a **key** to work: +``` +{ + "key": "mykey" +} +``` + +* The **insert** and **update** verbs need a **key** and a **value** to work: +``` +{ + "key": "mykey", + "value": "my value" +} +``` +The **value** can be any valid json. diff --git a/ll-database-binding/conf.d/cmake/FindBerkeleyDB.cmake b/conf.d/cmake/FindBerkeleyDB.cmake similarity index 100% rename from ll-database-binding/conf.d/cmake/FindBerkeleyDB.cmake rename to conf.d/cmake/FindBerkeleyDB.cmake diff --git a/ll-database-binding/conf.d/cmake/FindGDBM.cmake b/conf.d/cmake/FindGDBM.cmake similarity index 100% rename from ll-database-binding/conf.d/cmake/FindGDBM.cmake rename to conf.d/cmake/FindGDBM.cmake diff --git a/ll-database-binding/conf.d/cmake/config.cmake b/conf.d/cmake/config.cmake similarity index 99% rename from ll-database-binding/conf.d/cmake/config.cmake rename to conf.d/cmake/config.cmake index a698e70..5f59f66 100644 --- a/ll-database-binding/conf.d/cmake/config.cmake +++ b/conf.d/cmake/config.cmake @@ -31,7 +31,7 @@ set(PROJECT_LANGUAGES,"C") # Where are stored default templates files from submodule or subtree app-templates in your project tree # relative to the root project directory -set(PROJECT_APP_TEMPLATES_DIR "../conf.d/app-templates") +set(PROJECT_APP_TEMPLATES_DIR "conf.d/app-templates") # Where are stored your external libraries for your project. This is 3rd party library that you don't maintain # but used and must be built and linked. diff --git a/ll-database-binding/conf.d/wgt/config.xml.in b/conf.d/wgt/config.xml.in similarity index 100% rename from ll-database-binding/conf.d/wgt/config.xml.in rename to conf.d/wgt/config.xml.in diff --git a/ll-database-binding/htdocs/persistence/AFB-websock.js b/htdocs/persistence/AFB-websock.js similarity index 100% rename from ll-database-binding/htdocs/persistence/AFB-websock.js rename to htdocs/persistence/AFB-websock.js diff --git a/ll-database-binding/htdocs/persistence/binding-debug.css b/htdocs/persistence/binding-debug.css similarity index 100% rename from ll-database-binding/htdocs/persistence/binding-debug.css rename to htdocs/persistence/binding-debug.css diff --git a/ll-database-binding/htdocs/persistence/index.html b/htdocs/persistence/index.html similarity index 100% rename from ll-database-binding/htdocs/persistence/index.html rename to htdocs/persistence/index.html diff --git a/ll-database-binding/htdocs/persistence/persistence-binding.js b/htdocs/persistence/persistence-binding.js similarity index 100% rename from ll-database-binding/htdocs/persistence/persistence-binding.js rename to htdocs/persistence/persistence-binding.js diff --git a/ll-database-binding/.gitmodules b/ll-database-binding/.gitmodules deleted file mode 100644 index e07cae1..0000000 --- a/ll-database-binding/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "conf.d/app-templates"] - path = conf.d/app-templates - url = https://gerrit.automotivelinux.org/gerrit/p/apps/app-templates.git diff --git a/ll-database-binding/README.md b/ll-database-binding/README.md deleted file mode 100644 index fb420dc..0000000 --- a/ll-database-binding/README.md +++ /dev/null @@ -1,38 +0,0 @@ - -# Database Binding -This binding provide a database API with key/value semantics. -The backend is currently a Berkeley DB. - -## Verbs -* **insert**: - This verb insert a key/value pair in the database. - If the key already exist, the verb fails. - -* **update**: - This verb update an existing record. - If the key doesn't exist, the verb fails. - -* **delete**: - This verb remove an existing key/value pair from the database. - If no matching record is found, the verb fails. - -* **read**: - This verb get the value associated with the specified key. - If no matching record is found, the verb fails. - -## Arguments -* The **read** and **delete** verbs need only a **key** to work: -``` -{ - "key": "mykey" -} -``` - -* The **insert** and **update** verbs need a **key** and a **value** to work: -``` -{ - "key": "mykey", - "value": "my value" -} -``` -The **value** can be any valid json. diff --git a/ll-database-binding/src/CMakeLists.txt b/src/CMakeLists.txt similarity index 100% rename from ll-database-binding/src/CMakeLists.txt rename to src/CMakeLists.txt diff --git a/ll-database-binding/src/export.map b/src/export.map similarity index 100% rename from ll-database-binding/src/export.map rename to src/export.map diff --git a/ll-database-binding/src/persistence-binding.c b/src/persistence-binding.c similarity index 100% rename from ll-database-binding/src/persistence-binding.c rename to src/persistence-binding.c