From: Sangwan Kwon Date: Thu, 5 Mar 2020 02:06:57 +0000 (+0900) Subject: Update type-safe query section X-Git-Tag: accepted/tizen/unified/20200810.122954~52 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d28219318c28b3a0e34e4a6169eaaf9376299360;p=platform%2Fcore%2Fsecurity%2Fvist.git Update type-safe query section Signed-off-by: Sangwan Kwon --- diff --git a/README.md b/README.md index 571cb40..52f6f3b 100644 --- a/README.md +++ b/README.md @@ -40,16 +40,19 @@ We can call any routines with query via virtual table. Type-safe query is what checked for type error at compile time. Basically query statement is not type-safe. -Most of opensource projects -what generate query like -[JPA(Java)](https://github.com/spring-projects/spring-data-jpa), -[sqlpp11(C++)](https://github.com/rbock/sqlpp11) -and [sqlite_orm(C++)](https://github.com/fnc12/sqlite_orm) -do not guarantee to generate type-safe query. -But [QueryDSL(Java)](https://github.com/querydsl/querydsl) +There are some opensource projects +what generate query or ORM. +In Java, +[JPA](https://github.com/spring-projects/spring-data-jpa), +do not guarantee to generate type-safe query +but [QueryDSL](https://github.com/querydsl/querydsl) guarantees to generate type-safe query. +In C++, +both [sqlpp11](https://github.com/rbock/sqlpp11) +and [sqlite_orm](https://github.com/fnc12/sqlite_orm) +guarantee to generate type-safe query. -**We make query-builder to generate type-safe query.** +**We make type-safe query-builder more intuitively.** Refer [this](https://github.sec.samsung.net/RS7-SECIOTSW/tizen-osquery/tree/master/src/vist/query-builder) to compare ours and other opensources. diff --git a/src/vist/query-builder/README.md b/src/vist/query-builder/README.md index 5173a8a..a66571e 100644 --- a/src/vist/query-builder/README.md +++ b/src/vist/query-builder/README.md @@ -5,6 +5,7 @@ between sql query and sql schema at compile time. | | ViST | [sqlpp11](https://github.com/rbock/sqlpp11) | [sqlite_orm](https://github.com/fnc12/sqlite_orm) | |---|---|---|---| | **Tpye** | query builder | orm | orm | +| **Query** | type safe | type safe | type safe | | **Language** | c++17 | c++11 ([WIP to c++17](https://github.com/rbock/sqlpp17)) | c++14 | | **Schema Location** | header file | header file | source file
(This makes hard to expose API.) | | **Intuition** | simple | complex | simple |