65e6ba1f8a6d272a31236335282b82de6c07e42e
Ran into some limitations of sqlx while trying to bulk create interior_refs. I also discovered how slow creating hundreds of rows in postgres is and I'm planning on saving interior_refs data in a jsonb column instead which seems to be much faster.
Development Setup
- Install and run postgres.
- Create postgres user and database (and add uuid extension while you're there ): createuser shopkeeper createdb shopkeeper sudo -u postgres -i psql postgres=# ALTER DATABASE shopkeeper OWNER TO shopkeeper; \password shopkeeper postgres=# CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
- Save password somewhere safe and then update the password in
refinery.tomland add a.envfile to the project directory with the contents: DATABASE_URL=postgresql://shopkeeper@@localhost/shopkeeper - Run
cargo run -- -mwhich will compile the app in debug mode and run the database migrations. - Run
./devserver.shto run the dev server (by default it listens at0.0.0.0:3030).
Todo
- Make self-contained docker container that can run the app without any setup.
Description
Languages
Rust
99.2%
Dockerfile
0.5%
PLpgSQL
0.2%