blob: 58ca92534ec2803e32c644f9229cc247826f841e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Balalaika
School project of a lyrics game site.
## Set up env
Create a .env file and fill using env_example as a guide.
## Setup database
To manage the database through the program's scripts use
`cargo run-script`
You can install the app with
`cargo install cargo-run-script`
Available scripts:
```
db_create
db_populate
db_fast_populate
db_start
db_stop
```
The start/stop scripts assume that you're using systemd.
If not, just start/stop the mariadb service manually.
db_fast_populate is a non-tested experimental alternative that
attempts to use a backup sql file to create the database.
## Changes
### Single parameters ONLY
You can only search a parameter at a time.
This is because Rust needs to process the sql queries ahead of time
in order to make them safe to injection attacks.
|