DUXPLIMA Documentation

Overview

What is stored, the tables, sharing one database across servers, and moving off SQLite.

BackendFor
SQLiteOne server. The default
MySQL and MariaDBA network sharing prices, stock and player shops
PostgreSQLThe same, on PostgreSQL

Tables

Every table starts with table-prefix (uxmshop_).

TableHolds
uxmshop_priceWhere each banded line's price stands, and when it last walked home
uxmshop_counterServer stock and player allowances, per line, direction and window
uxmshop_modifierPlayer modifiers over everything, a section or a line
uxmshop_shopPlayer and server shops: owner, place, the three switches
uxmshop_offerTheir offers: the item, prices, currency, match mode and stock
uxmshop_staffWho works in which shop
uxmshop_tradeThe log, kept log.keep-days
uxmshop_sequenceIds handed out
uxmshop_schema_historyThe version the tables are at

A network

Point every server at the same database with the same table-prefix, and prices, counters, player shops and the log are shared. A rotation is worked out from the clock, so every server shows the same lines.

Keeping one server apart

local-only = true keeps one server on its own SQLite file, whatever type says.

Moving off SQLite

  1. Create the database and a user.
  2. Set type, host, port, database, username, password, and copy-from-file = true.
  3. Restart once. The rows are copied into the empty tables, and the console says how many. Tables that already hold rows are left alone.

Related: config.conf