From 520aa79ae3b967cb4ef366f92266b53b78c2f1c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lo=C3=AFc=20Collignon?= Date: Thu, 8 Feb 2018 11:06:33 +0100 Subject: [PATCH] moved files to root folder. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I7103241843736e1a5747253781485afa457a64d0 Signed-off-by: Loïc Collignon --- .../CMakeLists.txt => CMakeLists.txt | 0 README.md | 38 +++++++++++++++++++++- .../conf.d => conf.d}/cmake/FindBerkeleyDB.cmake | 0 .../conf.d => conf.d}/cmake/FindGDBM.cmake | 0 .../conf.d => conf.d}/cmake/config.cmake | 2 +- .../conf.d => conf.d}/wgt/config.xml.in | 0 .../htdocs => htdocs}/persistence/AFB-websock.js | 0 .../persistence/binding-debug.css | 0 .../htdocs => htdocs}/persistence/index.html | 0 .../persistence/persistence-binding.js | 0 ll-database-binding/.gitmodules | 3 -- ll-database-binding/README.md | 38 ---------------------- {ll-database-binding/src => src}/CMakeLists.txt | 0 {ll-database-binding/src => src}/export.map | 0 .../src => src}/persistence-binding.c | 0 15 files changed, 38 insertions(+), 43 deletions(-) rename ll-database-binding/CMakeLists.txt => CMakeLists.txt (100%) rename {ll-database-binding/conf.d => conf.d}/cmake/FindBerkeleyDB.cmake (100%) rename {ll-database-binding/conf.d => conf.d}/cmake/FindGDBM.cmake (100%) rename {ll-database-binding/conf.d => conf.d}/cmake/config.cmake (99%) rename {ll-database-binding/conf.d => conf.d}/wgt/config.xml.in (100%) rename {ll-database-binding/htdocs => htdocs}/persistence/AFB-websock.js (100%) rename {ll-database-binding/htdocs => htdocs}/persistence/binding-debug.css (100%) rename {ll-database-binding/htdocs => htdocs}/persistence/index.html (100%) rename {ll-database-binding/htdocs => htdocs}/persistence/persistence-binding.js (100%) delete mode 100644 ll-database-binding/.gitmodules delete mode 100644 ll-database-binding/README.md rename {ll-database-binding/src => src}/CMakeLists.txt (100%) rename {ll-database-binding/src => src}/export.map (100%) rename {ll-database-binding/src => src}/persistence-binding.c (100%) 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 -- 2.16.6