arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1209.1011cs.DBmath.CT
收藏

Kleisli数据库

Kleisli Database Instances

David I. Spivak

摘要:

我们使用monad来放松数据库中数据的原子性要求。根据monad的选择,数据库字段可能包含一般化的值,如列表或值集,也可能包含异常,如各种类型的null。monad的return操作确保任何普通的数据库实例都将被视为这些广义实例之一,bind操作确保广义值在外键序列的连接下表现良好。不同的monad允许在数据库中存储不同类型的信息。例如,我们表明,经典的概念,如马尔可夫链,图形和有限状态自动机,每个完美的捕获由不同的单子在同一模式。

英文摘要:

We use monads to relax the atomicity requirement for data in a database. Depending on the choice of monad, the database fields may contain generalized values such as lists or sets of values, or they may contain exceptions such as various types of nulls. The return operation for monads ensures that any ordinary database instance will count as one of these generalized instances, and the bind operation ensures that generalized values behave well under joins of foreign key sequences. Different monads allow for vastly different types of information to be stored in the database. For example, we show that classical concepts like Markov chains, graphs, and finite state automata are each perfectly captured by a different monad on the same schema.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑