使用Julia进行数据库抽象 [英] Database abstraction with Julia
问题描述
许多语言都提供数据库抽象功能,以将数据(对象)保存到关系数据库中(通常通过对象关系映射(ORM)).
Many languages provide database abstraction to save data (objects) to relational databases (generally through object relational mapping (ORM)).
我知道Julia不是一种传统的"面向对象的语言(请参见 julia:OOP或不是)
I'm aware that Julia is not a "conventional" object oriented language (see julia: OOP or not )
但是我想知道是否存在具有以下功能的库?
But I wonder if a library with the following features exists ?
Connect to a database through a database URI like
"dialect+driver://username:password@host:port/database"
(see Python SQLAlchemy http://docs.sqlalchemy.org/en/latest/core/engines.html )
将对象(实际上是复合类型的实例)存储到数据库中
Store objects (in fact instances of composite type) to a DB
从数据库中检索对象
推荐答案
JuliaDB集合列出了多种连接数据库的方法(即julia库),其中大多数应支持上述功能.
The JuliaDB collection lists various ways (i.e. julia libraries) to connect to databases, most of which should support the above functionality.
请参见 https://github.com/JuliaComputing/JuliaDB.jl
这篇关于使用Julia进行数据库抽象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!