Electron100 / butane

An ORM for Rust with a focus on simplicity and on writing Rust, not SQL
Apache License 2.0
93 stars 13 forks source link

How to use butane_cli for postgres #2

Closed ieow closed 3 years ago

ieow commented 3 years ago

I am trying to use butane with postgres as db

cargo.toml file butane = { version = "0.2.1", features=["default", "pg", "r2d2" ] }

I tried run cargo install butane_cli

but hit error /usr/bin/ld: cannot find -lsqlite3

ieow commented 3 years ago

Notice that the butane_cli toml has dependencies butane = { path="../butane", version="0.3", features=["default", "sqlite", "pg"] }

solve it by installing libsqlite3-dev sudo apt-get install libsqlite3-dev