Skip to main content

Database

Database table for persistent player data

This section

Database

Player preferences and music data are stored in a single MySQL table. Import data.sql to create it.

Table: code9_carplay

ColumnTypeDefaultDescription
identifierVARCHAR(64)PKPlayer license identifier
playlistLONGTEXTNULLJSON array of user playlists
liked_songsLONGTEXTNULLJSON array of liked songs
autopilot_posLONGTEXTNULLJSON of saved autopilot position
ui_themeVARCHAR(50)NULLSelected theme ID
nav_activeBOOLEANTRUENavigation overlay enabled
volumeINT50Music volume level (0-100)

Auto-Creation

The server automatically creates a row for new players using INSERT IGNORE when they first open CarPlay.

Supported Database Drivers

  • oxmysql
  • mysql-async
  • ghmattimysql