1、搭建项目框架并与数据库关联
运行命令:
psql postgres
CREATE DATABASE first OWNER leafccc;
echo “postgresql://leafccc@localhost:5432/first” >db.url
2、导入先验数据与文章
导入先验数据,在app.ddlog下编辑:
@source
transaction_dbdata(
@key
company1_name text,
@key
company2_name text
).
接着执行导入到postgres的命令:
(注意 1、每次更改app.ddlog都需要deepdive compile 2、执行完后输入:wq保存)
deepdive compile &