mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
docs: Update docs for Postgres support (#619)
* Renamed PrivateHomeListCommand.java to HomeListCommand.java as it shows all homes not just private homes
* Implemented https://github.com/WiIIiam278/HuskHomes/issues/543
* Implemented https://github.com/WiIIiam278/HuskHomes/issues/515
* added changes to all lang files, removed un used imports, fix error where it would not remove invulnerability from player on sponge
* make economy hook disabled by default
* make all hooks disabled by default to prevent race errors
* Update docs to reflect [Commit 7ad9104](https://github.com/WiIIiam278/HuskHomes/commit/7ad91046778acc551d7b2c96f07bd08e431cabab)
* revert bool change
* docs: fix POSTGRESQ typo
---------
Co-authored-by: William <[email protected]>
This commit is contained in:
1 parent
7ad9104677
commit
a43785c5c5
3 files changed
+18
-17
No files matched your search
+12
-11
@@ -3,12 +3,13 @@ HuskHomes stores player data, homes, warps, and teleports in a database of your
|
||||
## Database types
|
||||
> **Warning:** There is currently no automatic way of migrating between _database_ types. Changing the database type will cause data to be lost.
|
||||
|
||||
| Type | File or Server | Description | Supports cross-server |
|
||||
|:----------|----------------|:----------------------------------------------------------------------------|:---------------------:|
|
||||
| `SQLITE` | File | A file-based database. This is the default (recommended) option. | ❌ |
|
||||
| `H2` | File | A file-based database, similar to SQLITE, with slightly faster query times. | ❌ |
|
||||
| `MYSQL` | Server | A database hosted on a MySQL server. | ✅ |
|
||||
| `MARIADB` | Server | A database hosted on a MariaDB server. | ✅ |
|
||||
| Type | File or Server | Description | Supports cross-server |
|
||||
|:-------------|----------------|:----------------------------------------------------------------------------|:---------------------:|
|
||||
| `SQLITE` | File | A file-based database. This is the default (recommended) option. | ❌ |
|
||||
| `H2` | File | A file-based database, similar to SQLITE, with slightly faster query times. | ❌ |
|
||||
| `MYSQL` | Server | A database hosted on a MySQL server. | ✅ |
|
||||
| `MARIADB` | Server | A database hosted on a MariaDB server. | ✅ |
|
||||
| `POSTGRESQL` | Server | A database hosted on a PostgreSQL server. | ✅ |
|
||||
|
||||
### Cross-server
|
||||
If you are using HuskHomes on a cross-server network, you will need to use a database type that supports cross-server setups. This is because cross-server setups require a single database to be shared between all servers so that HuskHomes can access the same data on each server.
|
||||
@@ -25,7 +26,7 @@ database:
|
||||
type: SQLITE
|
||||
mysql:
|
||||
credentials:
|
||||
# Specify credentials here if you are using MYSQL or MARIADB as your database type
|
||||
# Specify credentials here if you are using MYSQL, MARIADB, or POSTGRESQL as your database type
|
||||
host: localhost
|
||||
port: 3306
|
||||
database: HuskHomes
|
||||
@@ -33,7 +34,7 @@ database:
|
||||
password: pa55w0rd
|
||||
parameters: ?autoReconnect=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8
|
||||
connection_pool:
|
||||
# MYSQL / MARIADB database Hikari connection pool properties. Don't modify this unless you know what you're doing!
|
||||
# MYSQL / MARIADB / POSTGRESQL database Hikari connection pool properties. Don't modify this unless you know what you're doing!
|
||||
size: 12
|
||||
idle: 12
|
||||
lifetime: 1800000
|
||||
@@ -42,7 +43,7 @@ database:
|
||||
```
|
||||
</details>
|
||||
|
||||
### Credentials (MariaDB & MySQL)
|
||||
You will need to specify the credentials (hostname, port, username, password and the database) if you are using MariaDB or MySQL. These credentials are used to connect to your database server.
|
||||
### Credentials (MariaDB, MySQL & PostgreSQL)
|
||||
You will need to specify the credentials (hostname, port, username, password and the database) if you are using MariaDB, MySQL or PostgreSQL. These credentials are used to connect to your database server.
|
||||
|
||||
Additionally, you can modify the HikariCP connection pool properties if you know what you're doing. The default values should be fine for most users.
|
||||
Additionally, you can modify the HikariCP connection pool properties if you know what you're doing. The default values should be fine for most users.
|
||||
Reference in new issue
Block a user