Skip to content

Commands: convert

SlimeDog edited this page Apr 11, 2022 · 4 revisions

pHD ▪ Manage holograms with intelligence

Synopsis

/phd convert <sourceStorageType> <targetStorageType>

Description

The convert copies data between storage types. SQLITE and YAML storage types are supported.

The database file for the sourceStorageType must exist.

Required parameters

  • sourceStorageType
  • targetStorageType

Tab-completion is available for all parameters.

Output

Success or failure

How to

Recommendation: Back up the data, and test the procedure in a non-production environment, before executing it on a production server.

  • Execute the command.
  • Verify that the newly-created target data are consistent with the source data.
    • Use sqlite3 (or equivalent) to view SQLITE data.
    • Use a text file reader to view YAML data.
  • Edit plugins/pHD/config.yml to reflect the new data storage type.
  • Execute phd reload to use the newly-created target data.

Examples

/phd convert SQLITE YAML
Started converting from SQLITE to YAML
Done converting from SQLITE to YAML
/phd convert YAML SQLITE
Started converting from YAML to SQLITE
Done converting from YAML to SQLITE

Localization

Messages may be localized. See Localization.

Overview
Version Support 🚩
How It Works
Installation
Configuration
Localization
   ▫ Formatting Codes
Commands & Perms
   ▫ list
   ▫ info
   ▫ report
   ▫ manage
   ▫ set
   ▫ unset
   ▫ unmanage
   ▫ reload
   ▫ convert
Sample Use Cases
Support
FAQ
Technical Details
Futures

downloads-hangar
downloads-spigot

$Donate

Clone this wiki locally