| | |
| | | std::string uuid; |
| | | std::string faceurl; |
| | | FaceFeature faceFeature; |
| | | std::string enable; |
| | | }; |
| | | |
| | | typedef std::map<std::string, FaceFeatureWithUrl> FeatureDBWithUrlCache; |
| | |
| | | // |
| | | std::string getFacesFromTableSql(std::string tableName) { |
| | | std::string sql = |
| | | "select uuid,feature,create_time,faceUrl,del_flag from '" + tableName + |
| | | "select uuid,feature,create_time,faceUrl,del_flag,enabled from '" + tableName + |
| | | "_fea' where feature is not null "; |
| | | return sql; |
| | | } |
| | |
| | | } |
| | | |
| | | std::string getTableInfosSql(std::string tableName) { |
| | | std::string sql = "select * from '" + tableName+"';";// + " where del_flag = 0"; |
| | | std::string sql = "select * from '" + tableName + "';";// + " where del_flag = 0"; |
| | | return sql; |
| | | } |
| | | |