Skip to content

Commit

Permalink
Changes for ability to write to other databases.
Browse files Browse the repository at this point in the history
  • Loading branch information
drsjb80 committed Apr 16, 2019
1 parent 60ca392 commit 327ed3b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Expand Up @@ -40,6 +40,28 @@ To get JSON in the form to use with jTables, do:

curl localhost:8080/?handd=true

## Databases
The default database is SQLite and requires no configuration. The tables
are written into the default ("main.db") database.

If you'd like to use a different database, there are some environment
variables that need setting.

HPOTTER\_DB -- the name of the database type, e.g.: "mysql".
Defaults to "sqlite".

HPOTTER\_DB\_PASSWORD -- e.g.: "my-secret-pw".
Defaults to "".

HPOTTER\_DB\_HOST
Defaults to "127.0.0.1".

HPOTTER\_DB\_PORT -- e.g.: 3306
Defaults to "".

HPOTTER\_DB\_DB -- The database where the tables are placed e.g.: hpotter.
Created if not present. Defaults to "hpotter".

## Directory structure
hpotter/

Expand Down

0 comments on commit 327ed3b

Please sign in to comment.