我的var rect = event.target.offsetParent;
rect.offsetTop;
看起来像这样 -
@OneToOne(optional = true)
@JoinColumn(name = "parent", referencedColumnName = "refID", insertable = true, updatable = true)
我的Package.swift
看起来像这样 -
import PackageDescription
let package = Package(
name: "Hello",
dependencies: [
.Package(url: "https://github.com/vapor/vapor.git", majorVersion: 1, minor: 2),
.Package(url: "https://github.com/vapor/sqlite-provider.git", majorVersion: 1, minor: 1)
],
exclude: [
"Config",
"Database",
"Localization",
"Public",
"Resources",
"Tests",
]
)
我的sqlite.json看起来像这样 -
main.swift
我的错误看起来像 -
请帮助我在Vapor中使用sqlite3。
答案 0 :(得分:2)
如果您还没有,则需要在Mac上安装SQLite的标题。
brew install sqlite3
假设您已经安装了Homebrew。