Interface TimePostgreSQL

All Superinterfaces:
SQL, TimeSQL

public interface TimePostgreSQL extends TimeSQL
PostgreSQL-specific implementation of TimeSQL.
Since:
1.10.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    upsert(int playerId, long first, long last, long total, int sessions)
    Inserts a new playtime record or updates an existing one.

    Methods inherited from interface TimeSQL

    findByPlayer, getAllPlayTimes, getTotalCount, updateLastSeen
  • Method Details

    • upsert

      void upsert(int playerId, long first, long last, long total, int sessions)
      Description copied from interface: TimeSQL
      Inserts a new playtime record or updates an existing one.
      Specified by:
      upsert in interface TimeSQL
      Parameters:
      playerId - the player ID
      first - the timestamp of first join (only used if record is new)
      last - the timestamp of last seen
      total - the total playtime in seconds
      sessions - the number of sessions