2

I have started exploring unqlite database, but the issue is that I cannot find any solution for primary and foreign constrain. For primary key every record by default it creates _id key, but still I am not able to find any thing foreign key concept. If anyone could help me with code.

4

1 回答 1

1

UnQLite 是一个键/值数据库引擎,它不支持与关系数据库(例如 MySQL)等外键的关系。它也没有索引。您可以通过键查找 O(1) 的值。如果您需要任何过滤,如WHERESQL 中的查询,您需要遍历所有键或使用 Python 函数过滤集合,该函数也遍历所有集合。

于 2020-01-24T18:43:18.183 回答