pyrekordbox 0.2.1__py3-none-any.whl → 0.2.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- docs/source/formats/anlz.md +178 -7
- docs/source/formats/db6.md +1 -1
- docs/source/index.md +2 -6
- docs/source/quickstart.md +68 -45
- docs/source/tutorial/index.md +1 -1
- pyrekordbox/__init__.py +1 -1
- pyrekordbox/_version.py +2 -2
- pyrekordbox/anlz/file.py +39 -0
- pyrekordbox/anlz/structs.py +3 -5
- pyrekordbox/config.py +71 -27
- pyrekordbox/db6/database.py +260 -33
- pyrekordbox/db6/registry.py +22 -0
- pyrekordbox/db6/tables.py +3 -4
- {pyrekordbox-0.2.1.dist-info → pyrekordbox-0.2.2.dist-info}/METADATA +12 -11
- pyrekordbox-0.2.2.dist-info/RECORD +80 -0
- {pyrekordbox-0.2.1.dist-info → pyrekordbox-0.2.2.dist-info}/top_level.txt +0 -2
- tests/test_config.py +175 -0
- tests/test_db6.py +78 -0
- build/lib/build/lib/docs/source/conf.py +0 -178
- build/lib/build/lib/pyrekordbox/__init__.py +0 -22
- build/lib/build/lib/pyrekordbox/__main__.py +0 -204
- build/lib/build/lib/pyrekordbox/_version.py +0 -16
- build/lib/build/lib/pyrekordbox/anlz/__init__.py +0 -127
- build/lib/build/lib/pyrekordbox/anlz/file.py +0 -186
- build/lib/build/lib/pyrekordbox/anlz/structs.py +0 -299
- build/lib/build/lib/pyrekordbox/anlz/tags.py +0 -508
- build/lib/build/lib/pyrekordbox/config.py +0 -596
- build/lib/build/lib/pyrekordbox/db6/__init__.py +0 -45
- build/lib/build/lib/pyrekordbox/db6/aux_files.py +0 -213
- build/lib/build/lib/pyrekordbox/db6/database.py +0 -1808
- build/lib/build/lib/pyrekordbox/db6/registry.py +0 -304
- build/lib/build/lib/pyrekordbox/db6/tables.py +0 -1618
- build/lib/build/lib/pyrekordbox/logger.py +0 -23
- build/lib/build/lib/pyrekordbox/mysettings/__init__.py +0 -32
- build/lib/build/lib/pyrekordbox/mysettings/file.py +0 -369
- build/lib/build/lib/pyrekordbox/mysettings/structs.py +0 -282
- build/lib/build/lib/pyrekordbox/utils.py +0 -162
- build/lib/build/lib/pyrekordbox/xml.py +0 -1294
- build/lib/build/lib/tests/__init__.py +0 -3
- build/lib/build/lib/tests/test_anlz.py +0 -206
- build/lib/build/lib/tests/test_db6.py +0 -1039
- build/lib/build/lib/tests/test_mysetting.py +0 -203
- build/lib/build/lib/tests/test_xml.py +0 -629
- build/lib/docs/source/conf.py +0 -178
- build/lib/pyrekordbox/__init__.py +0 -22
- build/lib/pyrekordbox/__main__.py +0 -204
- build/lib/pyrekordbox/_version.py +0 -16
- build/lib/pyrekordbox/anlz/__init__.py +0 -127
- build/lib/pyrekordbox/anlz/file.py +0 -186
- build/lib/pyrekordbox/anlz/structs.py +0 -299
- build/lib/pyrekordbox/anlz/tags.py +0 -508
- build/lib/pyrekordbox/config.py +0 -596
- build/lib/pyrekordbox/db6/__init__.py +0 -45
- build/lib/pyrekordbox/db6/aux_files.py +0 -213
- build/lib/pyrekordbox/db6/database.py +0 -1808
- build/lib/pyrekordbox/db6/registry.py +0 -304
- build/lib/pyrekordbox/db6/tables.py +0 -1618
- build/lib/pyrekordbox/logger.py +0 -23
- build/lib/pyrekordbox/mysettings/__init__.py +0 -32
- build/lib/pyrekordbox/mysettings/file.py +0 -369
- build/lib/pyrekordbox/mysettings/structs.py +0 -282
- build/lib/pyrekordbox/utils.py +0 -162
- build/lib/pyrekordbox/xml.py +0 -1294
- build/lib/tests/__init__.py +0 -3
- build/lib/tests/test_anlz.py +0 -206
- build/lib/tests/test_db6.py +0 -1039
- build/lib/tests/test_mysetting.py +0 -203
- build/lib/tests/test_xml.py +0 -629
- pyrekordbox-0.2.1.dist-info/RECORD +0 -129
- {pyrekordbox-0.2.1.dist-info → pyrekordbox-0.2.2.dist-info}/LICENSE +0 -0
- {pyrekordbox-0.2.1.dist-info → pyrekordbox-0.2.2.dist-info}/WHEEL +0 -0
@@ -1,1618 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
# Author: Dylan Jones
|
3
|
-
# Date: 2023-08-07
|
4
|
-
|
5
|
-
"""Rekordbox 6 `master.db` SQLAlchemy table declarations."""
|
6
|
-
|
7
|
-
import math
|
8
|
-
import struct
|
9
|
-
import numpy as np
|
10
|
-
from datetime import datetime
|
11
|
-
from sqlalchemy import Column, Integer, VARCHAR, BigInteger, SmallInteger, Text, Float
|
12
|
-
from sqlalchemy import ForeignKey, TypeDecorator
|
13
|
-
from sqlalchemy.orm import DeclarativeBase, relationship, backref, mapped_column, Mapped
|
14
|
-
from sqlalchemy.inspection import inspect
|
15
|
-
from .registry import RekordboxAgentRegistry
|
16
|
-
|
17
|
-
__all__ = [
|
18
|
-
"StatsTime",
|
19
|
-
"StatsFull",
|
20
|
-
"AgentRegistry",
|
21
|
-
"CloudAgentRegistry",
|
22
|
-
"ContentActiveCensor",
|
23
|
-
"ContentCue",
|
24
|
-
"ContentFile",
|
25
|
-
"DjmdActiveCensor",
|
26
|
-
"DjmdAlbum",
|
27
|
-
"DjmdArtist",
|
28
|
-
"DjmdCategory",
|
29
|
-
"DjmdColor",
|
30
|
-
"DjmdContent",
|
31
|
-
"DjmdCue",
|
32
|
-
"DjmdDevice",
|
33
|
-
"DjmdGenre",
|
34
|
-
"DjmdHistory",
|
35
|
-
"DjmdHotCueBanklist",
|
36
|
-
"DjmdKey",
|
37
|
-
"DjmdLabel",
|
38
|
-
"DjmdMenuItems",
|
39
|
-
"DjmdMixerParam",
|
40
|
-
"DjmdMyTag",
|
41
|
-
"DjmdPlaylist",
|
42
|
-
"DjmdProperty",
|
43
|
-
"DjmdRelatedTracks",
|
44
|
-
"DjmdSampler",
|
45
|
-
"DjmdSongHistory",
|
46
|
-
"DjmdSongHotCueBanklist",
|
47
|
-
"DjmdSongMyTag",
|
48
|
-
"DjmdSongPlaylist",
|
49
|
-
"DjmdSongRelatedTracks",
|
50
|
-
"DjmdSongSampler",
|
51
|
-
"DjmdSongTagList",
|
52
|
-
"DjmdSort",
|
53
|
-
"HotCueBanklistCue",
|
54
|
-
"ImageFile",
|
55
|
-
"SettingFile",
|
56
|
-
"UuidIDMap",
|
57
|
-
]
|
58
|
-
|
59
|
-
|
60
|
-
class DateTime(TypeDecorator):
|
61
|
-
"""Custom datetime column with timezone support.
|
62
|
-
|
63
|
-
The datetime format in the database is `YYYY-MM-DD HH:MM:SS.SSS +00:00`.
|
64
|
-
The timezone seems to always be `+00:00` (UTC).
|
65
|
-
This format is not supported by the `DateTime` column of SQLAlchemy 2.
|
66
|
-
"""
|
67
|
-
|
68
|
-
impl = Text
|
69
|
-
cache_ok = True
|
70
|
-
|
71
|
-
def process_bind_param(self, value, dialect):
|
72
|
-
return value.isoformat().replace("T", " ")[:-3] + " +00:00"
|
73
|
-
|
74
|
-
def process_result_value(self, value, dialect):
|
75
|
-
if value:
|
76
|
-
try:
|
77
|
-
dt = datetime.fromisoformat(value)
|
78
|
-
except ValueError:
|
79
|
-
if len(value.strip()) > 23:
|
80
|
-
datestr, tzinfo = value[:23], value[23:]
|
81
|
-
datestr = datestr.strip()
|
82
|
-
tzinfo = tzinfo.strip()
|
83
|
-
assert tzinfo == "+00:00", tzinfo
|
84
|
-
else:
|
85
|
-
datestr, tzinfo = value, ""
|
86
|
-
dt = datetime.fromisoformat(datestr)
|
87
|
-
return dt
|
88
|
-
return None
|
89
|
-
|
90
|
-
|
91
|
-
# -- Base- and Mixin classes -----------------------------------------------------------
|
92
|
-
|
93
|
-
|
94
|
-
class Base(DeclarativeBase):
|
95
|
-
"""Base class used to initialize the declarative base for all tables."""
|
96
|
-
|
97
|
-
__tablename__: str
|
98
|
-
|
99
|
-
@classmethod
|
100
|
-
def create(cls, **kwargs):
|
101
|
-
RekordboxAgentRegistry.disable_tracking()
|
102
|
-
# noinspection PyArgumentList
|
103
|
-
self = cls(**kwargs)
|
104
|
-
RekordboxAgentRegistry.enable_tracking()
|
105
|
-
return self
|
106
|
-
|
107
|
-
@classmethod
|
108
|
-
def columns(cls):
|
109
|
-
"""Returns a list of all column names without the relationships."""
|
110
|
-
return [column.name for column in inspect(cls).c]
|
111
|
-
|
112
|
-
@classmethod
|
113
|
-
def relationships(cls):
|
114
|
-
"""Returns a list of all relationship names."""
|
115
|
-
return [column.key for column in inspect(cls).relationships] # noqa
|
116
|
-
|
117
|
-
def __iter__(self):
|
118
|
-
"""Iterates over all columns and relationship names."""
|
119
|
-
insp = inspect(self.__class__)
|
120
|
-
for column in insp.c:
|
121
|
-
yield column.name
|
122
|
-
for column in insp.relationships: # noqa
|
123
|
-
yield column.key
|
124
|
-
|
125
|
-
def __len__(self):
|
126
|
-
return sum(1 for _ in self.__iter__())
|
127
|
-
|
128
|
-
def __getitem__(self, item):
|
129
|
-
return self.__getattribute__(item)
|
130
|
-
|
131
|
-
# noinspection PyUnresolvedReferences
|
132
|
-
def __setattr__(self, key, value):
|
133
|
-
if not key.startswith("_"):
|
134
|
-
RekordboxAgentRegistry.on_update(self, key, value)
|
135
|
-
super().__setattr__(key, value)
|
136
|
-
|
137
|
-
def keys(self):
|
138
|
-
"""Returns a list of all column names including the relationships."""
|
139
|
-
return list(self.__iter__())
|
140
|
-
|
141
|
-
def values(self):
|
142
|
-
"""Returns a list of all column values including the relationships."""
|
143
|
-
return [self.__getitem__(key) for key in self.keys()]
|
144
|
-
|
145
|
-
def items(self):
|
146
|
-
for key in self.__iter__():
|
147
|
-
yield key, self.__getitem__(key)
|
148
|
-
|
149
|
-
def to_dict(self):
|
150
|
-
"""Returns a dictionary of all column names and values."""
|
151
|
-
return {key: self.__getitem__(key) for key in self.columns()}
|
152
|
-
|
153
|
-
def pformat(self, indent=" "):
|
154
|
-
lines = [f"{self.__tablename__}"]
|
155
|
-
columns = self.columns()
|
156
|
-
w = max(len(col) for col in columns)
|
157
|
-
for col in columns:
|
158
|
-
lines.append(f"{indent}{col:<{w}} {self.__getitem__(col)}")
|
159
|
-
return "\n".join(lines)
|
160
|
-
|
161
|
-
|
162
|
-
class StatsTime:
|
163
|
-
"""Mixin class for tables that only use time statistics columns."""
|
164
|
-
|
165
|
-
created_at: Mapped[datetime] = mapped_column(
|
166
|
-
DateTime, nullable=False, default=datetime.now
|
167
|
-
)
|
168
|
-
"""The creation date of the table entry (from :class:`StatsTime`)."""
|
169
|
-
updated_at: Mapped[datetime] = mapped_column(
|
170
|
-
DateTime, nullable=False, default=datetime.now, onupdate=datetime.now
|
171
|
-
)
|
172
|
-
"""The last update date of the table entry (from :class:`StatsTime`)."""
|
173
|
-
|
174
|
-
|
175
|
-
class StatsFull:
|
176
|
-
"""Mixin class for tables that use all statistics columns."""
|
177
|
-
|
178
|
-
ID: Column
|
179
|
-
"""The ID (primary key) of the table entry."""
|
180
|
-
|
181
|
-
UUID: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
182
|
-
"""The UUID of the table entry (from :class:`StatsFull`)"""
|
183
|
-
rb_data_status: Mapped[int] = mapped_column(Integer, default=0)
|
184
|
-
"""The data status of the table entry (from :class:`StatsFull`)."""
|
185
|
-
rb_local_data_status: Mapped[int] = mapped_column(Integer, default=0)
|
186
|
-
"""The local data status of the table entry (from :class:`StatsFull`)."""
|
187
|
-
rb_local_deleted: Mapped[int] = mapped_column(SmallInteger, default=0)
|
188
|
-
"""The local deleted status of the table entry (from :class:`StatsFull`)."""
|
189
|
-
rb_local_synced: Mapped[int] = mapped_column(SmallInteger, default=0)
|
190
|
-
"""The local synced status of the table entry (from :class:`StatsFull`)."""
|
191
|
-
usn: Mapped[int] = mapped_column(BigInteger, default=None)
|
192
|
-
"""The USN (unique sequence number) of the table entry (from :class:`StatsFull`)."""
|
193
|
-
rb_local_usn: Mapped[int] = mapped_column(BigInteger, default=None)
|
194
|
-
"""The local USN (unique sequence number) of the table entry
|
195
|
-
(from :class:`StatsFull`)."""
|
196
|
-
created_at: Mapped[datetime] = mapped_column(
|
197
|
-
DateTime, nullable=False, default=datetime.now
|
198
|
-
)
|
199
|
-
"""The creation date of the table entry (from :class:`StatsFull`)."""
|
200
|
-
updated_at: Mapped[datetime] = mapped_column(
|
201
|
-
DateTime, nullable=False, default=datetime.now, onupdate=datetime.now
|
202
|
-
)
|
203
|
-
"""The last update date of the table entry (from :class:`StatsFull`)."""
|
204
|
-
|
205
|
-
def __repr__(self):
|
206
|
-
return f"<{self.__class__.__name__}({self.ID})>"
|
207
|
-
|
208
|
-
|
209
|
-
# -- Table declarations ----------------------------------------------------------------
|
210
|
-
|
211
|
-
|
212
|
-
class AgentRegistry(Base, StatsTime):
|
213
|
-
"""Table for storing agent registry data.
|
214
|
-
|
215
|
-
Each row represents a single agent registry entry with different attributes.
|
216
|
-
For this reason the column names are generic and not specific to the data they
|
217
|
-
store.
|
218
|
-
|
219
|
-
See Also
|
220
|
-
--------
|
221
|
-
:class:`CloudAgentRegistry`: Table for storing the agent registry data in the cloud.
|
222
|
-
"""
|
223
|
-
|
224
|
-
__tablename__ = "agentRegistry"
|
225
|
-
|
226
|
-
registry_id: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
227
|
-
"""The ID (primary key) of the table entry."""
|
228
|
-
id_1: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
229
|
-
"""The first ID value of the table entry."""
|
230
|
-
id_2: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
231
|
-
"""The second ID value of the table entry."""
|
232
|
-
int_1: Mapped[int] = mapped_column(Integer, default=None)
|
233
|
-
"""The first integer value of the table entry."""
|
234
|
-
int_2: Mapped[int] = mapped_column(Integer, default=None)
|
235
|
-
"""The second integer value of the table entry."""
|
236
|
-
str_1: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
237
|
-
"""The first string value of the table entry."""
|
238
|
-
str_2: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
239
|
-
"""The second string value of the table entry."""
|
240
|
-
date_1: Mapped[datetime] = mapped_column(DateTime, default=None)
|
241
|
-
"""The first date value of the table entry."""
|
242
|
-
date_2: Mapped[datetime] = mapped_column(DateTime, default=None)
|
243
|
-
"""The second date value of the table entry."""
|
244
|
-
text_1: Mapped[str] = mapped_column(Text, default=None)
|
245
|
-
"""The first text value of the table entry."""
|
246
|
-
text_2: Mapped[str] = mapped_column(Text, default=None)
|
247
|
-
"""The second text value of the table entry."""
|
248
|
-
|
249
|
-
|
250
|
-
class CloudAgentRegistry(Base, StatsFull):
|
251
|
-
"""Table for storing agent registry data in the Rekordbox cloud.
|
252
|
-
|
253
|
-
Each row represents a single agent registry entry with different attributes.
|
254
|
-
For this reason the column names are generic and not specific to the data they
|
255
|
-
store.
|
256
|
-
|
257
|
-
See Also
|
258
|
-
--------
|
259
|
-
:class:`AgentRegistry`: Table for storing the local agent registry data.
|
260
|
-
"""
|
261
|
-
|
262
|
-
__tablename__ = "cloudAgentRegistry"
|
263
|
-
|
264
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
265
|
-
"""The ID (primary key) of the table entry."""
|
266
|
-
int_1: Mapped[int] = mapped_column(Integer, default=None)
|
267
|
-
"""The first integer value of the table entry."""
|
268
|
-
int_2: Mapped[int] = mapped_column(Integer, default=None)
|
269
|
-
"""The second integer value of the table entry."""
|
270
|
-
str_1: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
271
|
-
"""The first string value of the table entry."""
|
272
|
-
str_2: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
273
|
-
"""The second string value of the table entry."""
|
274
|
-
date_1: Mapped[datetime] = mapped_column(DateTime, default=None)
|
275
|
-
"""The first date value of the table entry."""
|
276
|
-
date_2: Mapped[datetime] = mapped_column(DateTime, default=None)
|
277
|
-
"""The second date value of the table entry."""
|
278
|
-
text_1: Mapped[str] = mapped_column(Text, default=None)
|
279
|
-
"""The first text value of the table entry."""
|
280
|
-
text_2: Mapped[str] = mapped_column(Text, default=None)
|
281
|
-
"""The second text value of the table entry."""
|
282
|
-
|
283
|
-
|
284
|
-
class ContentActiveCensor(Base, StatsFull):
|
285
|
-
"""Table for storing the active censors of the Rekordbox library contents.
|
286
|
-
|
287
|
-
See Also
|
288
|
-
--------
|
289
|
-
:class:`DjmdContent`: Table for storing the content data.
|
290
|
-
"""
|
291
|
-
|
292
|
-
__tablename__ = "contentActiveCensor"
|
293
|
-
|
294
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
295
|
-
"""The ID (primary key) of the table entry."""
|
296
|
-
ContentID: Mapped[str] = mapped_column(
|
297
|
-
VARCHAR(255), ForeignKey("djmdContent.ID"), default=None
|
298
|
-
)
|
299
|
-
"""The ID of the :class:`DjmdContent` entry this censor belongs to."""
|
300
|
-
ActiveCensors: Mapped[str] = mapped_column(Text, default=None)
|
301
|
-
"""The active censors of the table entry."""
|
302
|
-
rb_activecensor_count: Mapped[int] = mapped_column(Integer, default=None)
|
303
|
-
"""The active censor count of the table entry."""
|
304
|
-
|
305
|
-
Content = relationship("DjmdContent")
|
306
|
-
"""The content entry this censor belongs to (links to :class:`DjmdContent`)."""
|
307
|
-
|
308
|
-
|
309
|
-
class ContentCue(Base, StatsFull):
|
310
|
-
"""Table for storing the cues of the Rekordbox library contents.
|
311
|
-
|
312
|
-
See Also
|
313
|
-
--------
|
314
|
-
:class:`DjmdContent`: Table for storing the content data.
|
315
|
-
"""
|
316
|
-
|
317
|
-
__tablename__ = "contentCue"
|
318
|
-
|
319
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
320
|
-
"""The ID (primary key) of the table entry."""
|
321
|
-
ContentID: Mapped[str] = mapped_column(
|
322
|
-
VARCHAR(255), ForeignKey("djmdContent.ID"), default=None
|
323
|
-
)
|
324
|
-
"""The ID of the :class:`DjmdContent` entry this cue belongs to."""
|
325
|
-
Cues: Mapped[str] = mapped_column(Text, default=None)
|
326
|
-
"""The cues of the table entry."""
|
327
|
-
rb_cue_count: Mapped[int] = mapped_column(Integer, default=None)
|
328
|
-
"""The cue count of the table entry."""
|
329
|
-
|
330
|
-
Content = relationship("DjmdContent")
|
331
|
-
"""The content entry this cue belongs to (links to :class:`DjmdContent`)."""
|
332
|
-
|
333
|
-
|
334
|
-
class ContentFile(Base, StatsFull):
|
335
|
-
"""Table for storing the file data of the Rekordbox library contents.
|
336
|
-
|
337
|
-
See Also
|
338
|
-
--------
|
339
|
-
:class:`DjmdContent`: Table for storing the content data.
|
340
|
-
"""
|
341
|
-
|
342
|
-
__tablename__ = "contentFile"
|
343
|
-
|
344
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
345
|
-
"""The ID (primary key) of the table entry."""
|
346
|
-
ContentID: Mapped[str] = mapped_column(
|
347
|
-
VARCHAR(255), ForeignKey("djmdContent.ID"), default=None
|
348
|
-
)
|
349
|
-
"""The ID of the :class:`DjmdContent` entry this file belongs to."""
|
350
|
-
Path: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
351
|
-
"""The path of the file."""
|
352
|
-
Hash: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
353
|
-
"""The hash of the file."""
|
354
|
-
Size: Mapped[int] = mapped_column(Integer, default=None)
|
355
|
-
"""The size of the file."""
|
356
|
-
rb_local_path: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
357
|
-
"""The local path of the file."""
|
358
|
-
rb_insync_hash: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
359
|
-
"""The in-sync hash of the file."""
|
360
|
-
rb_insync_local_usn: Mapped[int] = mapped_column(BigInteger, default=None)
|
361
|
-
"""The in-sync local USN (unique sequence number) of the file."""
|
362
|
-
rb_file_hash_dirty: Mapped[int] = mapped_column(Integer, default=0)
|
363
|
-
"""The file hash dirty flag of the file."""
|
364
|
-
rb_local_file_status: Mapped[int] = mapped_column(Integer, default=0)
|
365
|
-
"""The local file status of the file."""
|
366
|
-
rb_in_progress: Mapped[int] = mapped_column(SmallInteger, default=0)
|
367
|
-
"""The in progress flag of the file."""
|
368
|
-
rb_process_type: Mapped[int] = mapped_column(Integer, default=0)
|
369
|
-
"""The process type of the file."""
|
370
|
-
rb_temp_path: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
371
|
-
"""The temporary path of the file."""
|
372
|
-
rb_priority: Mapped[int] = mapped_column(Integer, default=50)
|
373
|
-
"""The priority of the file."""
|
374
|
-
rb_file_size_dirty: Mapped[int] = mapped_column(Integer, default=0)
|
375
|
-
"""The file size dirty flag of the file."""
|
376
|
-
|
377
|
-
Content = relationship("DjmdContent")
|
378
|
-
"""The content entry this file belongs to (links to :class:`DjmdContent`)."""
|
379
|
-
|
380
|
-
|
381
|
-
class DjmdActiveCensor(Base, StatsFull):
|
382
|
-
"""Table for storing the active censors of the Rekordbox library contents.
|
383
|
-
|
384
|
-
See Also
|
385
|
-
--------
|
386
|
-
:class:`DjmdContent`: Table for storing the content data.
|
387
|
-
"""
|
388
|
-
|
389
|
-
__tablename__ = "djmdActiveCensor"
|
390
|
-
|
391
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
392
|
-
"""The ID (primary key) of the table entry."""
|
393
|
-
ContentID: Mapped[str] = mapped_column(
|
394
|
-
VARCHAR(255), ForeignKey("djmdContent.ID"), default=None
|
395
|
-
)
|
396
|
-
"""The ID of the :class:`DjmdContent` entry this censor belongs to."""
|
397
|
-
InMsec: Mapped[int] = mapped_column(Integer, default=None)
|
398
|
-
"""The in time of the censor (in milliseconds)."""
|
399
|
-
OutMsec: Mapped[int] = mapped_column(Integer, default=None)
|
400
|
-
"""The out time of the censor (in milliseconds)."""
|
401
|
-
Info: Mapped[int] = mapped_column(Integer, default=None)
|
402
|
-
"""Additional info of the censor."""
|
403
|
-
ParameterList: Mapped[str] = mapped_column(Text, default=None)
|
404
|
-
"""The parameter list of the censor."""
|
405
|
-
ContentUUID: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
406
|
-
"""The UUID of the :class:`DjmdContent` entry this censor belongs to."""
|
407
|
-
|
408
|
-
Content = relationship("DjmdContent")
|
409
|
-
"""The content entry this censor belongs to (links to :class:`DjmdContent`)."""
|
410
|
-
|
411
|
-
|
412
|
-
class DjmdAlbum(Base, StatsFull):
|
413
|
-
"""Table for storing the album data of the Rekordbox library contents.
|
414
|
-
|
415
|
-
See Also
|
416
|
-
--------
|
417
|
-
:class:`DjmdArtist`: Table for storing the artist data.
|
418
|
-
"""
|
419
|
-
|
420
|
-
__tablename__ = "djmdAlbum"
|
421
|
-
|
422
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
423
|
-
"""The ID (primary key) of the table entry."""
|
424
|
-
Name: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
425
|
-
"""The name of the album."""
|
426
|
-
AlbumArtistID: Mapped[str] = mapped_column(
|
427
|
-
VARCHAR(255), ForeignKey("djmdArtist.ID"), default=None
|
428
|
-
)
|
429
|
-
"""The ID of the :class:`DjmdArtist` entry of the artist of this album."""
|
430
|
-
ImagePath: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
431
|
-
"""The path of the image of the album."""
|
432
|
-
Compilation: Mapped[int] = mapped_column(Integer, default=None)
|
433
|
-
"""The compilation flag of the album."""
|
434
|
-
SearchStr: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
435
|
-
"""The search string of the album."""
|
436
|
-
|
437
|
-
AlbumArtist = relationship("DjmdArtist")
|
438
|
-
"""The artist entry of the artist of this album (links to :class:`DjmdArtist`)."""
|
439
|
-
|
440
|
-
def __repr__(self):
|
441
|
-
s = f"{self.ID: <10} Name={self.Name}"
|
442
|
-
return f"<{self.__class__.__name__}({s})>"
|
443
|
-
|
444
|
-
|
445
|
-
class DjmdArtist(Base, StatsFull):
|
446
|
-
"""Table for storing the artist data of the Rekordbox library contents."""
|
447
|
-
|
448
|
-
__tablename__ = "djmdArtist"
|
449
|
-
|
450
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
451
|
-
"""The ID (primary key) of the table entry."""
|
452
|
-
Name: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
453
|
-
"""The name of the artist."""
|
454
|
-
SearchStr: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
455
|
-
"""The search string of the artist."""
|
456
|
-
|
457
|
-
def __repr__(self):
|
458
|
-
s = f"{self.ID: <10} Name={self.Name}"
|
459
|
-
return f"<{self.__class__.__name__}({s})>"
|
460
|
-
|
461
|
-
|
462
|
-
class DjmdCategory(Base, StatsFull):
|
463
|
-
"""Table for storing the category data of the Rekordbox library.
|
464
|
-
|
465
|
-
See Also
|
466
|
-
--------
|
467
|
-
:class:`DjmdMenuItems`: Table for storing menu items of Rekordbox.
|
468
|
-
"""
|
469
|
-
|
470
|
-
__tablename__ = "djmdCategory"
|
471
|
-
|
472
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
473
|
-
"""The ID (primary key) of the table entry."""
|
474
|
-
MenuItemID: Mapped[str] = mapped_column(
|
475
|
-
VARCHAR(255), ForeignKey("djmdMenuItems.ID"), default=None
|
476
|
-
)
|
477
|
-
"""The ID of the :class:`DjmdMenuItems` entry belonging to the category."""
|
478
|
-
Seq: Mapped[int] = mapped_column(Integer, default=None)
|
479
|
-
"""The sequence of the category (for ordering)."""
|
480
|
-
Disable: Mapped[int] = mapped_column(Integer, default=None)
|
481
|
-
"""The disable flag of the category."""
|
482
|
-
InfoOrder: Mapped[int] = mapped_column(Integer, default=None)
|
483
|
-
"""Information for ordering the categories."""
|
484
|
-
|
485
|
-
MenuItem = relationship("DjmdMenuItems", foreign_keys=MenuItemID)
|
486
|
-
"""The menu item entry of the category (links to :class:`DjmdMenuItems`)."""
|
487
|
-
|
488
|
-
|
489
|
-
class DjmdColor(Base, StatsFull):
|
490
|
-
"""Table for storing all colors of Rekordbox."""
|
491
|
-
|
492
|
-
__tablename__ = "djmdColor"
|
493
|
-
|
494
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
495
|
-
"""The ID (primary key) of the table entry."""
|
496
|
-
ColorCode: Mapped[int] = mapped_column(Integer, default=None)
|
497
|
-
"""The color code of the color."""
|
498
|
-
SortKey: Mapped[int] = mapped_column(Integer, default=None)
|
499
|
-
"""The sort key of the color."""
|
500
|
-
Commnt: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
501
|
-
"""The comment (name) of the color."""
|
502
|
-
|
503
|
-
def __repr__(self):
|
504
|
-
s = f"{self.ID: <2} Comment={self.Commnt}"
|
505
|
-
return f"<{self.__class__.__name__}({s})>"
|
506
|
-
|
507
|
-
|
508
|
-
class DjmdContent(Base, StatsFull):
|
509
|
-
"""Table for storing the content data of the Rekordbox library.
|
510
|
-
|
511
|
-
This table stores the main track data of Rekordbox.
|
512
|
-
The table contains most information about each track in the collection.
|
513
|
-
Some columns are linked to other tables by the corresponding ID.
|
514
|
-
|
515
|
-
See Also
|
516
|
-
--------
|
517
|
-
:class:`DjmdAlbum`: Table for storing the album data.
|
518
|
-
:class:`DjmdArtist`: Table for storing the artist data.
|
519
|
-
:class:`DjmdGenre`: Table for storing the genre data.
|
520
|
-
:class:`DjmdKey`: Table for storing the key data.
|
521
|
-
:class:`DjmdLabel`: Table for storing the label data.
|
522
|
-
:class:`DjmdColor`: Table for storing the color data.
|
523
|
-
"""
|
524
|
-
|
525
|
-
__tablename__ = "djmdContent"
|
526
|
-
|
527
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
528
|
-
"""The ID (primary key) of the track."""
|
529
|
-
FolderPath: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
530
|
-
"""The full path of the file corresponding to the content entry."""
|
531
|
-
FileNameL: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
532
|
-
"""The long file name of the file corresponding to the content entry."""
|
533
|
-
FileNameS: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
534
|
-
"""The short file name of the file corresponding to the content entry."""
|
535
|
-
Title: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
536
|
-
"""The title of the track."""
|
537
|
-
ArtistID: Mapped[str] = mapped_column(
|
538
|
-
VARCHAR(255), ForeignKey("djmdArtist.ID"), default=None
|
539
|
-
)
|
540
|
-
"""The ID of the :class:`DjmdArtist` entry of the artist of this track."""
|
541
|
-
AlbumID: Mapped[str] = mapped_column(
|
542
|
-
VARCHAR(255), ForeignKey("djmdAlbum.ID"), default=None
|
543
|
-
)
|
544
|
-
"""The ID of the :class:`DjmdAlbum` entry of the album of this track."""
|
545
|
-
GenreID: Mapped[str] = mapped_column(
|
546
|
-
VARCHAR(255), ForeignKey("djmdGenre.ID"), default=None
|
547
|
-
)
|
548
|
-
"""The ID of the :class:`DjmdGenre` entry of the genre of this track."""
|
549
|
-
BPM: Mapped[int] = mapped_column(Integer, default=None)
|
550
|
-
"""The BPM (beats per minute) of the track."""
|
551
|
-
Length: Mapped[int] = mapped_column(Integer, default=None)
|
552
|
-
"""The length of the track."""
|
553
|
-
TrackNo: Mapped[int] = mapped_column(Integer, default=None)
|
554
|
-
"""The track number of the track."""
|
555
|
-
BitRate: Mapped[int] = mapped_column(Integer, default=None)
|
556
|
-
"""The bit rate of the track."""
|
557
|
-
BitDepth: Mapped[int] = mapped_column(Integer, default=None)
|
558
|
-
"""The bit depth of the track."""
|
559
|
-
Commnt: Mapped[str] = mapped_column(Text, default=None)
|
560
|
-
"""The comment of the track."""
|
561
|
-
FileType: Mapped[int] = mapped_column(Integer, default=None)
|
562
|
-
"""The file type of the track."""
|
563
|
-
Rating: Mapped[int] = mapped_column(Integer, default=None)
|
564
|
-
"""The rating of the track."""
|
565
|
-
ReleaseYear: Mapped[int] = mapped_column(Integer, default=None)
|
566
|
-
"""The release year of the track."""
|
567
|
-
RemixerID: Mapped[str] = mapped_column(
|
568
|
-
VARCHAR(255), ForeignKey("djmdArtist.ID"), default=None
|
569
|
-
)
|
570
|
-
"""The ID of the :class:`DjmdArtist` entry of the remixer of this track."""
|
571
|
-
LabelID: Mapped[str] = mapped_column(
|
572
|
-
VARCHAR(255), ForeignKey("djmdLabel.ID"), default=None
|
573
|
-
)
|
574
|
-
"""The ID of the :class:`DjmdLabel` entry of the label of this track."""
|
575
|
-
OrgArtistID: Mapped[str] = mapped_column(
|
576
|
-
VARCHAR(255), ForeignKey("djmdArtist.ID"), default=None
|
577
|
-
)
|
578
|
-
"""The ID of the :class:`DjmdArtist` entry of the original artist of this track."""
|
579
|
-
KeyID: Mapped[str] = mapped_column(
|
580
|
-
VARCHAR(255), ForeignKey("djmdKey.ID"), default=None
|
581
|
-
)
|
582
|
-
"""The ID of the :class:`DjmdKey` entry of the key of this track."""
|
583
|
-
StockDate: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
584
|
-
"""The stock date of the track."""
|
585
|
-
ColorID: Mapped[str] = mapped_column(
|
586
|
-
VARCHAR(255), ForeignKey("djmdColor.ID"), default=None
|
587
|
-
)
|
588
|
-
"""The ID of the :class:`DjmdColor` entry of the color of this track."""
|
589
|
-
DJPlayCount: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
590
|
-
"""The play count of the track."""
|
591
|
-
ImagePath: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
592
|
-
"""The path of the image of the track."""
|
593
|
-
MasterDBID: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
594
|
-
"""The master database ID of the track."""
|
595
|
-
MasterSongID: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
596
|
-
"""The master song ID of the track."""
|
597
|
-
AnalysisDataPath: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
598
|
-
"""The path of the analysis data (ANLZ) of the track."""
|
599
|
-
SearchStr: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
600
|
-
"""The search string of the track."""
|
601
|
-
FileSize: Mapped[int] = mapped_column(Integer, default=None)
|
602
|
-
"""The file size of the track."""
|
603
|
-
DiscNo: Mapped[int] = mapped_column(Integer, default=None)
|
604
|
-
"""The number of the disc of the album of the track."""
|
605
|
-
ComposerID: Mapped[str] = mapped_column(
|
606
|
-
VARCHAR(255), ForeignKey("djmdArtist.ID"), default=None
|
607
|
-
)
|
608
|
-
"""The ID of the :class:`DjmdArtist` entry of the composer of this track."""
|
609
|
-
Subtitle: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
610
|
-
"""The subtitle of the track."""
|
611
|
-
SampleRate: Mapped[int] = mapped_column(Integer, default=None)
|
612
|
-
"""The sample rate of the track in Hz."""
|
613
|
-
DisableQuantize: Mapped[int] = mapped_column(Integer, default=None)
|
614
|
-
"""Individual quantize status of the track."""
|
615
|
-
Analysed: Mapped[int] = mapped_column(Integer, default=None)
|
616
|
-
"""The analysis status of the track."""
|
617
|
-
ReleaseDate: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
618
|
-
"""The release date of the track."""
|
619
|
-
DateCreated: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
620
|
-
"""The date the track was created."""
|
621
|
-
ContentLink: Mapped[int] = mapped_column(Integer, default=None)
|
622
|
-
"""The content link of the track."""
|
623
|
-
Tag: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
624
|
-
"""The tag of the track."""
|
625
|
-
ModifiedByRBM: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
626
|
-
"""The modified by RBM status of the track."""
|
627
|
-
HotCueAutoLoad: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
628
|
-
"""The hot cue auto load status of the track."""
|
629
|
-
DeliveryControl: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
630
|
-
"""The delivery control status of the track."""
|
631
|
-
DeliveryComment: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
632
|
-
"""The delivery comment of the track."""
|
633
|
-
CueUpdated: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
634
|
-
"""The cue updated status of the track."""
|
635
|
-
AnalysisUpdated: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
636
|
-
"""The analysis updated status of the track."""
|
637
|
-
TrackInfoUpdated: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
638
|
-
"""The track info updated status of the track."""
|
639
|
-
Lyricist: Mapped[str] = mapped_column(
|
640
|
-
VARCHAR(255), ForeignKey("djmdArtist.ID"), default=None
|
641
|
-
)
|
642
|
-
"""The ID of the :class:`DjmdArtist` entry of the lyricist of this track."""
|
643
|
-
ISRC: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
644
|
-
"""The ISRC of the track."""
|
645
|
-
SamplerTrackInfo: Mapped[int] = mapped_column(Integer, default=None)
|
646
|
-
"""The sampler track info of the track."""
|
647
|
-
SamplerPlayOffset: Mapped[int] = mapped_column(Integer, default=None)
|
648
|
-
"""The sampler play offset of the track."""
|
649
|
-
SamplerGain: Mapped[float] = mapped_column(Float, default=None)
|
650
|
-
"""The sampler gain of the track."""
|
651
|
-
VideoAssociate: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
652
|
-
"""The video associate of the track."""
|
653
|
-
LyricStatus: Mapped[int] = mapped_column(Integer, default=None)
|
654
|
-
"""The lyric status of the track."""
|
655
|
-
ServiceID: Mapped[int] = mapped_column(Integer, default=None)
|
656
|
-
"""The service ID of the track."""
|
657
|
-
OrgFolderPath: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
658
|
-
"""The original folder path of the track."""
|
659
|
-
Reserved1: Mapped[str] = mapped_column(Text, default=None)
|
660
|
-
"""Reserved field 1."""
|
661
|
-
Reserved2: Mapped[str] = mapped_column(Text, default=None)
|
662
|
-
"""Reserved field 2."""
|
663
|
-
Reserved3: Mapped[str] = mapped_column(Text, default=None)
|
664
|
-
"""Reserved field 3."""
|
665
|
-
Reserved4: Mapped[str] = mapped_column(Text, default=None)
|
666
|
-
"""Reserved field 4."""
|
667
|
-
ExtInfo: Mapped[str] = mapped_column(Text, default=None)
|
668
|
-
"""The extended information of the track."""
|
669
|
-
rb_file_id: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
670
|
-
"""The file ID used by Rekordbox of the track."""
|
671
|
-
DeviceID: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
672
|
-
"""The device ID of the track."""
|
673
|
-
rb_LocalFolderPath: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
674
|
-
"""The local folder path used by Rekordbox of the track."""
|
675
|
-
SrcID: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
676
|
-
"""The ID of the source of the track."""
|
677
|
-
SrcTitle: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
678
|
-
"""The title of the source of the track."""
|
679
|
-
SrcArtistName: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
680
|
-
"""The artist name of the source of the track."""
|
681
|
-
SrcAlbumName: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
682
|
-
"""The album name of the source of the track."""
|
683
|
-
SrcLength: Mapped[int] = mapped_column(Integer, default=None)
|
684
|
-
"""The length of the source of the track."""
|
685
|
-
|
686
|
-
Artist = relationship("DjmdArtist", foreign_keys=ArtistID)
|
687
|
-
"""The artist entry of the track (links to :class:`DjmdArtists`)."""
|
688
|
-
Album = relationship("DjmdAlbum", foreign_keys=AlbumID)
|
689
|
-
"""The album entry of the track (links to :class:`DjmdAlbum`)."""
|
690
|
-
Genre = relationship("DjmdGenre", foreign_keys=GenreID)
|
691
|
-
"""The genre entry of the track (links to :class:`DjmdGenre`)."""
|
692
|
-
Remixer = relationship("DjmdArtist", foreign_keys=RemixerID)
|
693
|
-
"""The remixer entry of the track (links to :class:`DjmdArtist`)."""
|
694
|
-
Label = relationship("DjmdLabel", foreign_keys=LabelID)
|
695
|
-
"""The label entry of the track (links to :class:`DjmdLabel`)."""
|
696
|
-
OrgArtist = relationship("DjmdArtist", foreign_keys=OrgArtistID)
|
697
|
-
"""The original artist entry of the track (links to :class:`DjmdArtist`)."""
|
698
|
-
Key = relationship("DjmdKey", foreign_keys=KeyID)
|
699
|
-
"""The key entry of the track (links to :class:`DjmdKey`)."""
|
700
|
-
Color = relationship("DjmdColor", foreign_keys=ColorID)
|
701
|
-
"""The color entry of the track (links to :class:`DjmdColor`)."""
|
702
|
-
Composer = relationship("DjmdArtist", foreign_keys=ComposerID)
|
703
|
-
"""The composer entry of the track (links to :class:`DjmdArtist`)."""
|
704
|
-
|
705
|
-
def __repr__(self):
|
706
|
-
s = f"{self.ID: <10} Title={self.Title}"
|
707
|
-
return f"<{self.__class__.__name__}({s})>"
|
708
|
-
|
709
|
-
@property
|
710
|
-
def ArtistName(self) -> str:
|
711
|
-
"""The name of the artist (:class:`DjmdArtist`) of the track."""
|
712
|
-
try:
|
713
|
-
return self.Artist.Name
|
714
|
-
except AttributeError:
|
715
|
-
return ""
|
716
|
-
|
717
|
-
@property
|
718
|
-
def AlbumName(self) -> str:
|
719
|
-
"""The name of the album (:class:`DjmdAlbum`) of the track."""
|
720
|
-
try:
|
721
|
-
return self.Album.Name
|
722
|
-
except AttributeError:
|
723
|
-
return ""
|
724
|
-
|
725
|
-
@property
|
726
|
-
def GenreName(self) -> str:
|
727
|
-
"""The name of the genre (:class:`DjmdArtist`) of the track."""
|
728
|
-
try:
|
729
|
-
return self.Genre.Name
|
730
|
-
except AttributeError:
|
731
|
-
return ""
|
732
|
-
|
733
|
-
@property
|
734
|
-
def RemixerName(self) -> str:
|
735
|
-
"""The name of the remixer (:class:`DjmdArtist`) of the track."""
|
736
|
-
try:
|
737
|
-
return self.Remixer.Name
|
738
|
-
except AttributeError:
|
739
|
-
return ""
|
740
|
-
|
741
|
-
@property
|
742
|
-
def LabelName(self) -> str:
|
743
|
-
"""The name of the label (:class:`DjmdLabel`) of the track."""
|
744
|
-
try:
|
745
|
-
return self.Label.Name
|
746
|
-
except AttributeError:
|
747
|
-
return ""
|
748
|
-
|
749
|
-
@property
|
750
|
-
def OrgArtistName(self) -> str:
|
751
|
-
"""The name of the original artist (:class:`DjmdArtist`) of the track."""
|
752
|
-
try:
|
753
|
-
return self.OrgArtist.Name
|
754
|
-
except AttributeError:
|
755
|
-
return ""
|
756
|
-
|
757
|
-
@property
|
758
|
-
def KeyName(self) -> str:
|
759
|
-
"""The name of the key (:class:`DjmdKey`) of the track."""
|
760
|
-
try:
|
761
|
-
return self.Key.ScaleName
|
762
|
-
except AttributeError:
|
763
|
-
return ""
|
764
|
-
|
765
|
-
@property
|
766
|
-
def ColorName(self) -> str:
|
767
|
-
"""The name of the color (:class:`DjmdColor`) of the track."""
|
768
|
-
try:
|
769
|
-
return self.Color.Commnt
|
770
|
-
except AttributeError:
|
771
|
-
return ""
|
772
|
-
|
773
|
-
@property
|
774
|
-
def ComposerName(self) -> str:
|
775
|
-
"""The name of the composer (:class:`DjmdArtist`) of the track."""
|
776
|
-
try:
|
777
|
-
return self.Composer.Name
|
778
|
-
except AttributeError:
|
779
|
-
return ""
|
780
|
-
|
781
|
-
|
782
|
-
class DjmdCue(Base, StatsFull):
|
783
|
-
"""Table for storing the cue points of the Rekordbox library contents.
|
784
|
-
|
785
|
-
See Also
|
786
|
-
--------
|
787
|
-
:class:`DjmdContent`: Table for storing the content data.
|
788
|
-
"""
|
789
|
-
|
790
|
-
__tablename__ = "djmdCue"
|
791
|
-
|
792
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
793
|
-
"""The ID (primary key) of the table entry."""
|
794
|
-
ContentID: Mapped[str] = mapped_column(
|
795
|
-
VARCHAR(255), ForeignKey("djmdContent.ID"), default=None
|
796
|
-
)
|
797
|
-
"""The ID of the content (:class:`DjmdContent`) containing the cue point."""
|
798
|
-
InMsec: Mapped[int] = mapped_column(Integer, default=None)
|
799
|
-
"""The in point of the cue point in milliseconds."""
|
800
|
-
InFrame: Mapped[int] = mapped_column(Integer, default=None)
|
801
|
-
"""The in point of the cue point in frames."""
|
802
|
-
InMpegFrame: Mapped[int] = mapped_column(Integer, default=None)
|
803
|
-
"""The in point of the cue point in MPEG frames."""
|
804
|
-
InMpegAbs: Mapped[int] = mapped_column(Integer, default=None)
|
805
|
-
"""The in point of the cue point in MPEG absolute."""
|
806
|
-
OutMsec: Mapped[int] = mapped_column(Integer, default=None)
|
807
|
-
"""The out point of the cue point in milliseconds (for loops)."""
|
808
|
-
OutFrame: Mapped[int] = mapped_column(Integer, default=None)
|
809
|
-
"""The out point of the cue point in frames (for loops)."""
|
810
|
-
OutMpegFrame: Mapped[int] = mapped_column(Integer, default=None)
|
811
|
-
"""The out point of the cue point in MPEG frames (for loops)."""
|
812
|
-
OutMpegAbs: Mapped[int] = mapped_column(Integer, default=None)
|
813
|
-
"""The out point of the cue point in MPEG absolute (for loops)."""
|
814
|
-
Kind: Mapped[int] = mapped_column(Integer, default=None)
|
815
|
-
"""The kind of the cue point (Cue=0, Fade-In=0, Fade-Out=0, Load=3, Loop=4)."""
|
816
|
-
Color: Mapped[int] = mapped_column(Integer, default=None)
|
817
|
-
"""The color of the cue point. (-1 if no color)"""
|
818
|
-
ColorTableIndex: Mapped[int] = mapped_column(Integer, default=None)
|
819
|
-
"""The color table index of the cue point."""
|
820
|
-
ActiveLoop: Mapped[int] = mapped_column(Integer, default=None)
|
821
|
-
"""The active loop of the cue point."""
|
822
|
-
Comment: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
823
|
-
"""The comment of the cue point."""
|
824
|
-
BeatLoopSize: Mapped[int] = mapped_column(Integer, default=None)
|
825
|
-
"""The beat loop size of the cue point."""
|
826
|
-
CueMicrosec: Mapped[int] = mapped_column(Integer, default=None)
|
827
|
-
"""The cue microsecond of the cue point."""
|
828
|
-
InPointSeekInfo: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
829
|
-
"""The in point seek info of the cue point."""
|
830
|
-
OutPointSeekInfo: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
831
|
-
"""The out point seek info of the cue point."""
|
832
|
-
ContentUUID: Mapped[str] = mapped_column(
|
833
|
-
VARCHAR(255), ForeignKey("djmdContent.UUID"), default=None
|
834
|
-
)
|
835
|
-
"""The UUID of the content (:class:`DjmdContent`) containing the cue point."""
|
836
|
-
|
837
|
-
Content = relationship("DjmdContent", foreign_keys=ContentID)
|
838
|
-
"""The content entry of the cue point (links to :class:`DjmdContent`)."""
|
839
|
-
|
840
|
-
|
841
|
-
class DjmdDevice(Base, StatsFull):
|
842
|
-
"""Table for storing the device data of the Rekordbox library contents."""
|
843
|
-
|
844
|
-
__tablename__ = "djmdDevice"
|
845
|
-
|
846
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
847
|
-
"""The ID (primary key) of the table entry."""
|
848
|
-
MasterDBID: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
849
|
-
"""The ID of the master database."""
|
850
|
-
Name: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
851
|
-
"""The name of the device."""
|
852
|
-
|
853
|
-
def __repr__(self):
|
854
|
-
s = f"{self.ID: <2} Name={self.Name}"
|
855
|
-
return f"<{self.__class__.__name__}({s})>"
|
856
|
-
|
857
|
-
|
858
|
-
class DjmdGenre(Base, StatsFull):
|
859
|
-
"""Table for storing the genre data of the Rekordbox library contents."""
|
860
|
-
|
861
|
-
__tablename__ = "djmdGenre"
|
862
|
-
|
863
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
864
|
-
"""The ID (primary key) of the table entry."""
|
865
|
-
Name: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
866
|
-
"""The name of the genre."""
|
867
|
-
|
868
|
-
def __repr__(self):
|
869
|
-
s = f"{self.ID: <2} Name={self.Name}"
|
870
|
-
return f"<{self.__class__.__name__}({s})>"
|
871
|
-
|
872
|
-
|
873
|
-
class DjmdHistory(Base, StatsFull):
|
874
|
-
"""Table for storing the history data (playlist) of the Rekordbox library.
|
875
|
-
|
876
|
-
See Also
|
877
|
-
--------
|
878
|
-
:class:`DjmdSongHistory`: Stores the songs in the history playlists.
|
879
|
-
"""
|
880
|
-
|
881
|
-
__tablename__ = "djmdHistory"
|
882
|
-
|
883
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
884
|
-
"""The ID (primary key) of the table entry (:class:`DjmdHistory`)."""
|
885
|
-
Seq: Mapped[int] = mapped_column(Integer, default=None)
|
886
|
-
"""The sequence of the history playlist (for ordering)."""
|
887
|
-
Name: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
888
|
-
"""The name of the history playlist."""
|
889
|
-
Attribute: Mapped[int] = mapped_column(Integer, default=None)
|
890
|
-
"""The attributes of the history playlist"""
|
891
|
-
ParentID: Mapped[str] = mapped_column(
|
892
|
-
VARCHAR(255), ForeignKey("djmdHistory.ID"), default=None
|
893
|
-
)
|
894
|
-
"""The ID of the parent history playlist (:class:`DjmdHistory`)."""
|
895
|
-
DateCreated: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
896
|
-
"""The date the history playlist was created."""
|
897
|
-
|
898
|
-
Songs = relationship("DjmdSongHistory", back_populates="History")
|
899
|
-
"""The songs in the history playlist (links to :class:`DjmdSongHistory`)."""
|
900
|
-
Children = relationship(
|
901
|
-
"DjmdHistory",
|
902
|
-
foreign_keys=ParentID,
|
903
|
-
backref=backref("Parent", remote_side=[ID]),
|
904
|
-
)
|
905
|
-
"""The children of the history playlist (links to :class:`DjmdHistory`).
|
906
|
-
Backrefs to the parent history playlist via :attr:`Parent`.
|
907
|
-
"""
|
908
|
-
|
909
|
-
def __repr__(self):
|
910
|
-
s = f"{self.ID: <2} Name={self.Name}"
|
911
|
-
return f"<{self.__class__.__name__}({s})>"
|
912
|
-
|
913
|
-
|
914
|
-
class DjmdSongHistory(Base, StatsFull):
|
915
|
-
"""Table for storing the songs in the history of the Rekordbox library.
|
916
|
-
|
917
|
-
See Also
|
918
|
-
--------
|
919
|
-
:class:`DjmdHistory`: Stores the history playlists.
|
920
|
-
"""
|
921
|
-
|
922
|
-
__tablename__ = "djmdSongHistory"
|
923
|
-
|
924
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
925
|
-
|
926
|
-
HistoryID: Mapped[str] = mapped_column(
|
927
|
-
VARCHAR(255), ForeignKey("djmdHistory.ID"), default=None
|
928
|
-
)
|
929
|
-
"""The ID of the history playlist (:class:`DjmdHistory`)."""
|
930
|
-
ContentID: Mapped[str] = mapped_column(
|
931
|
-
VARCHAR(255), ForeignKey("djmdContent.ID"), default=None
|
932
|
-
)
|
933
|
-
"""The ID of the content (:class:`DjmdContent`)."""
|
934
|
-
TrackNo: Mapped[int] = mapped_column(Integer, default=None)
|
935
|
-
"""The track number of the song in the history playlist."""
|
936
|
-
|
937
|
-
History = relationship("DjmdHistory", back_populates="Songs")
|
938
|
-
"""The history playlist this song is in (links to :class:`DjmdHistory`)."""
|
939
|
-
Content = relationship("DjmdContent")
|
940
|
-
"""The content entry of the song (links to :class:`DjmdContent`)."""
|
941
|
-
|
942
|
-
|
943
|
-
class DjmdHotCueBanklist(Base, StatsFull):
|
944
|
-
"""Table for storing the hot-cue banklist data of the Rekordbox library.
|
945
|
-
|
946
|
-
See Also
|
947
|
-
--------
|
948
|
-
:class:`DjmdSongHotCueBanklist`: Stores the hot-cues in the hot cue banklists.
|
949
|
-
"""
|
950
|
-
|
951
|
-
__tablename__ = "djmdHotCueBanklist"
|
952
|
-
|
953
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
954
|
-
"""The ID (primary key) of the table entry (:class:`DjmdHotCueBanklist`)"""
|
955
|
-
Seq: Mapped[int] = mapped_column(Integer, default=None)
|
956
|
-
"""The sequence of the hot-cue banklist (for ordering)."""
|
957
|
-
Name: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
958
|
-
"""The name of the hot-cue banklist."""
|
959
|
-
ImagePath: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
960
|
-
"""The path to the image of the hot-cue banklist."""
|
961
|
-
Attribute: Mapped[int] = mapped_column(Integer, default=None)
|
962
|
-
"""The attributes of the hot cue banklist."""
|
963
|
-
ParentID: Mapped[str] = mapped_column(
|
964
|
-
VARCHAR(255), ForeignKey("djmdHotCueBanklist.ID"), default=None
|
965
|
-
)
|
966
|
-
"""The ID of the parent hot-cue banklist (:class:`DjmdHotCueBanklist`)."""
|
967
|
-
|
968
|
-
Children = relationship(
|
969
|
-
"DjmdHotCueBanklist",
|
970
|
-
foreign_keys=ParentID,
|
971
|
-
backref=backref("Parent", remote_side=[ID]),
|
972
|
-
)
|
973
|
-
"""The children of the hot-cue banklist (links to :class:`DjmdHotCueBanklist`).
|
974
|
-
Backrefs to the parent hot-cue banklist via :attr:`Parent`.
|
975
|
-
"""
|
976
|
-
|
977
|
-
def __repr__(self):
|
978
|
-
s = f"{self.ID: <2} Name={self.Name}"
|
979
|
-
return f"<{self.__class__.__name__}({s})>"
|
980
|
-
|
981
|
-
|
982
|
-
class DjmdSongHotCueBanklist(Base, StatsFull):
|
983
|
-
"""Table for storing the hot-cues in the hot cue banklists of the Rekordbox library.
|
984
|
-
|
985
|
-
See Also
|
986
|
-
--------
|
987
|
-
:class:`DjmdHotCueBanklist`: Stores the hot cue banklists.
|
988
|
-
"""
|
989
|
-
|
990
|
-
__tablename__ = "djmdSongHotCueBanklist"
|
991
|
-
|
992
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
993
|
-
"""The ID (primary key) of the table entry."""
|
994
|
-
HotCueBanklistID: Mapped[str] = mapped_column(
|
995
|
-
VARCHAR(255), ForeignKey("djmdHotCueBanklist.ID"), default=None
|
996
|
-
)
|
997
|
-
"""The ID of the hot cue banklist (:class:`DjmdHotCueBanklist`)."""
|
998
|
-
ContentID: Mapped[str] = mapped_column(
|
999
|
-
VARCHAR(255), ForeignKey("djmdContent.ID"), default=None
|
1000
|
-
)
|
1001
|
-
"""The ID of the content (:class:`DjmdContent`)."""
|
1002
|
-
TrackNo: Mapped[int] = mapped_column(Integer, default=None)
|
1003
|
-
"""The track number of the hot-cue in the hot cue banklist."""
|
1004
|
-
CueID: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1005
|
-
"""The ID of the hot-cue."""
|
1006
|
-
InMsec: Mapped[int] = mapped_column(Integer, default=None)
|
1007
|
-
"""The in point of the hot-cue in milliseconds."""
|
1008
|
-
InFrame: Mapped[int] = mapped_column(Integer, default=None)
|
1009
|
-
"""The in point of the hot-cue in frames."""
|
1010
|
-
InMpegFrame: Mapped[int] = mapped_column(Integer, default=None)
|
1011
|
-
"""The in point of the hot-cue in MPEG frames."""
|
1012
|
-
InMpegAbs: Mapped[int] = mapped_column(Integer, default=None)
|
1013
|
-
"""The in point of the hot-cue in MPEG absolute."""
|
1014
|
-
OutMsec: Mapped[int] = mapped_column(Integer, default=None)
|
1015
|
-
"""The out point of the hot-cue in milliseconds (for loops)."""
|
1016
|
-
OutFrame: Mapped[int] = mapped_column(Integer, default=None)
|
1017
|
-
"""The out point of the hot-cue in frames (for loops)."""
|
1018
|
-
OutMpegFrame: Mapped[int] = mapped_column(Integer, default=None)
|
1019
|
-
"""The out point of the hot-cue in MPEG frames (for loops)."""
|
1020
|
-
OutMpegAbs: Mapped[int] = mapped_column(Integer, default=None)
|
1021
|
-
"""The out point of the hot-cue in MPEG absolute (for loops)."""
|
1022
|
-
Color: Mapped[int] = mapped_column(Integer, default=None)
|
1023
|
-
"""The color of the hot-cue."""
|
1024
|
-
ColorTableIndex: Mapped[int] = mapped_column(Integer, default=None)
|
1025
|
-
"""The color table index of the hot-cue."""
|
1026
|
-
ActiveLoop: Mapped[int] = mapped_column(Integer, default=None)
|
1027
|
-
"""The active loop flag of the hot-cue."""
|
1028
|
-
Comment: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1029
|
-
"""The comment of the hot-cue."""
|
1030
|
-
BeatLoopSize: Mapped[int] = mapped_column(Integer, default=None)
|
1031
|
-
"""The beat loop size of the hot-cue."""
|
1032
|
-
CueMicrosec: Mapped[int] = mapped_column(Integer, default=None)
|
1033
|
-
"""The cue microsecond of the hot-cue."""
|
1034
|
-
InPointSeekInfo: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1035
|
-
"""The in point seek info of the hot-cue."""
|
1036
|
-
OutPointSeekInfo: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1037
|
-
"""The out point seek info of the hot-cue."""
|
1038
|
-
HotCueBanklistUUID: Mapped[str] = mapped_column(
|
1039
|
-
VARCHAR(255), ForeignKey("djmdHotCueBanklist.UUID"), default=None
|
1040
|
-
)
|
1041
|
-
"""The UUID of the hot-cue banklist (links to :class:`DjmdHotCueBanklist`)."""
|
1042
|
-
|
1043
|
-
Content = relationship("DjmdContent")
|
1044
|
-
"""The content of the hot-cue (links to :class:`DjmdContent`)."""
|
1045
|
-
|
1046
|
-
|
1047
|
-
class DjmdKey(Base, StatsFull):
|
1048
|
-
"""Table for storing the keys of tracks in the Rekordbox library."""
|
1049
|
-
|
1050
|
-
__tablename__ = "djmdKey"
|
1051
|
-
|
1052
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
1053
|
-
"""The ID (primary key) of the table entry."""
|
1054
|
-
ScaleName: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1055
|
-
"""The scale (name) of the key."""
|
1056
|
-
Seq: Mapped[int] = mapped_column(Integer, default=None)
|
1057
|
-
"""The sequence of the key (for ordering)."""
|
1058
|
-
|
1059
|
-
def __repr__(self):
|
1060
|
-
s = f"{self.ID: <2} Name={self.ScaleName}"
|
1061
|
-
return f"<{self.__class__.__name__}({s})>"
|
1062
|
-
|
1063
|
-
|
1064
|
-
class DjmdLabel(Base, StatsFull):
|
1065
|
-
"""Table for storing the labels of tracks in the Rekordbox library."""
|
1066
|
-
|
1067
|
-
__tablename__ = "djmdLabel"
|
1068
|
-
|
1069
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
1070
|
-
"""The ID (primary key) of the table entry."""
|
1071
|
-
Name: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1072
|
-
"""The name of the label."""
|
1073
|
-
|
1074
|
-
def __repr__(self):
|
1075
|
-
s = f"{self.ID: <2} Name={self.Name}"
|
1076
|
-
return f"<{self.__class__.__name__}({s})>"
|
1077
|
-
|
1078
|
-
|
1079
|
-
class DjmdMenuItems(Base, StatsFull):
|
1080
|
-
"""Table for storing the menu items in the Rekordbox library."""
|
1081
|
-
|
1082
|
-
__tablename__ = "djmdMenuItems"
|
1083
|
-
|
1084
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
1085
|
-
"""The ID (primary key) of the table entry."""
|
1086
|
-
Class: Mapped[int] = mapped_column(Integer, default=None)
|
1087
|
-
"""The class of the menu item."""
|
1088
|
-
Name: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1089
|
-
"""The name of the menu item."""
|
1090
|
-
|
1091
|
-
def __repr__(self):
|
1092
|
-
s = f"{self.ID: <2} Name={self.Name}"
|
1093
|
-
return f"<{self.__class__.__name__}({s})>"
|
1094
|
-
|
1095
|
-
|
1096
|
-
class DjmdMixerParam(Base, StatsFull):
|
1097
|
-
"""Table for storing the mixer parameters for tracks in the Rekordbox library.
|
1098
|
-
|
1099
|
-
See Also
|
1100
|
-
--------
|
1101
|
-
:class:`DjmdContent`: Table for storing the content data.
|
1102
|
-
"""
|
1103
|
-
|
1104
|
-
__tablename__ = "djmdMixerParam"
|
1105
|
-
|
1106
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
1107
|
-
"""The ID (primary key) of the table entry."""
|
1108
|
-
ContentID: Mapped[str] = mapped_column(
|
1109
|
-
VARCHAR(255), ForeignKey("djmdContent.ID"), default=None
|
1110
|
-
)
|
1111
|
-
"""The ID of the content (:class:`DjmdContent`)."""
|
1112
|
-
GainHigh: Mapped[int] = mapped_column(Integer, default=None)
|
1113
|
-
"""The high gain of the mixer parameter."""
|
1114
|
-
GainLow: Mapped[int] = mapped_column(Integer, default=None)
|
1115
|
-
"""The low gain of the mixer parameter."""
|
1116
|
-
PeakHigh: Mapped[int] = mapped_column(Integer, default=None)
|
1117
|
-
"""The high peak of the mixer parameter."""
|
1118
|
-
PeakLow: Mapped[int] = mapped_column(Integer, default=None)
|
1119
|
-
"""The low peak of the mixer parameter."""
|
1120
|
-
|
1121
|
-
Content = relationship("DjmdContent")
|
1122
|
-
"""The content this mixer parameters belong to (links to :class:`DjmdContent`)."""
|
1123
|
-
|
1124
|
-
@staticmethod
|
1125
|
-
def _get_db(low, high):
|
1126
|
-
integer = (high << 16) | low
|
1127
|
-
byte_data = integer.to_bytes(4, byteorder="big")
|
1128
|
-
factor = struct.unpack("!f", byte_data)[0]
|
1129
|
-
if factor <= 0:
|
1130
|
-
return -np.inf
|
1131
|
-
return 20 * math.log10(factor)
|
1132
|
-
|
1133
|
-
@staticmethod
|
1134
|
-
def _set_db(value):
|
1135
|
-
if value == -np.inf:
|
1136
|
-
return 0, 0
|
1137
|
-
factor = 10 ** (value / 20)
|
1138
|
-
byte_data = struct.pack("!f", factor)
|
1139
|
-
integer = int.from_bytes(byte_data, byteorder="big")
|
1140
|
-
low, high = integer & 0xFFFF, integer >> 16
|
1141
|
-
return low, high
|
1142
|
-
|
1143
|
-
@property
|
1144
|
-
def Gain(self) -> float:
|
1145
|
-
"""The auto-gain value of a track in dB.
|
1146
|
-
|
1147
|
-
This value is computed from the low and high gain values.
|
1148
|
-
It is the value of the auto-gain knob in the Grid Edit panel or Rekordbox,
|
1149
|
-
which is also set by the analysis process.
|
1150
|
-
"""
|
1151
|
-
return self._get_db(self.GainLow, self.GainHigh)
|
1152
|
-
|
1153
|
-
@Gain.setter
|
1154
|
-
def Gain(self, value: float) -> None:
|
1155
|
-
self.GainLow, self.GainHigh = self._set_db(value)
|
1156
|
-
|
1157
|
-
@property
|
1158
|
-
def Peak(self):
|
1159
|
-
"""The peak amplitude of a track in dB.
|
1160
|
-
|
1161
|
-
This value is computed from the low and high peak values.
|
1162
|
-
It is not exposed in Rekordbox.
|
1163
|
-
"""
|
1164
|
-
return self._get_db(self.PeakLow, self.PeakHigh)
|
1165
|
-
|
1166
|
-
@Peak.setter
|
1167
|
-
def Peak(self, value):
|
1168
|
-
self.PeakLow, self.PeakHigh = self._set_db(value)
|
1169
|
-
|
1170
|
-
|
1171
|
-
class DjmdMyTag(Base, StatsFull):
|
1172
|
-
"""Table for storing My-Tags lists in the Rekordbox library.
|
1173
|
-
|
1174
|
-
See Also
|
1175
|
-
--------
|
1176
|
-
:class:`DjmdSongMyTag`: Table for storing the My-Tag items.
|
1177
|
-
"""
|
1178
|
-
|
1179
|
-
__tablename__ = "djmdMyTag"
|
1180
|
-
|
1181
|
-
ID: Mapped[str] = mapped_column(
|
1182
|
-
VARCHAR(255), ForeignKey("djmdMyTag.ParentID"), primary_key=True
|
1183
|
-
)
|
1184
|
-
"""The ID (primary key) of the table entry."""
|
1185
|
-
Seq: Mapped[int] = mapped_column(Integer, default=None)
|
1186
|
-
"""The sequence of the My-Tag list (for ordering)."""
|
1187
|
-
Name: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1188
|
-
"""The name of the My-Tag list."""
|
1189
|
-
Attribute: Mapped[int] = mapped_column(Integer, default=None)
|
1190
|
-
"""The attribute of the My-Tag list."""
|
1191
|
-
ParentID: Mapped[str] = mapped_column(
|
1192
|
-
VARCHAR(255), ForeignKey("djmdMyTag.ID"), default=None
|
1193
|
-
)
|
1194
|
-
"""The ID of the parent My-Tag list (:class:`DjmdMyTag`)."""
|
1195
|
-
|
1196
|
-
MyTags = relationship("DjmdSongMyTag", back_populates="MyTag")
|
1197
|
-
"""The My-Tag items (links to :class:`DjmdSongMyTag`)."""
|
1198
|
-
Children = relationship(
|
1199
|
-
"DjmdMyTag", foreign_keys=ParentID, backref=backref("Parent", remote_side=[ID])
|
1200
|
-
)
|
1201
|
-
"""The child lists of the My-Tag list (links to :class:`DjmdMyTag`).
|
1202
|
-
Backrefs to the parent list via :attr:`Parent`.
|
1203
|
-
"""
|
1204
|
-
|
1205
|
-
def __repr__(self):
|
1206
|
-
s = f"{self.ID: <2} Name={self.Name}"
|
1207
|
-
return f"<{self.__class__.__name__}({s})>"
|
1208
|
-
|
1209
|
-
|
1210
|
-
class DjmdSongMyTag(Base, StatsFull):
|
1211
|
-
"""Table for storing My-Tag items in the Rekordbox library.
|
1212
|
-
|
1213
|
-
See Also
|
1214
|
-
--------
|
1215
|
-
:class:`DjmdMyTag`: Table for storing My-Tag lists.
|
1216
|
-
"""
|
1217
|
-
|
1218
|
-
__tablename__ = "djmdSongMyTag"
|
1219
|
-
|
1220
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
1221
|
-
"""The ID (primary key) of the table entry."""
|
1222
|
-
MyTagID: Mapped[str] = mapped_column(
|
1223
|
-
VARCHAR(255), ForeignKey("djmdMyTag.ID"), default=None
|
1224
|
-
)
|
1225
|
-
"""The ID of the My-Tag list (links to :class:`DjmdMyTag`)."""
|
1226
|
-
ContentID: Mapped[str] = mapped_column(
|
1227
|
-
VARCHAR(255), ForeignKey("djmdContent.ID"), default=None
|
1228
|
-
)
|
1229
|
-
"""The ID of the content this item belongs to (:class:`DjmdContent`)."""
|
1230
|
-
TrackNo: Mapped[int] = mapped_column(Integer, default=None)
|
1231
|
-
"""The track number of the My-Tag item (for ordering)."""
|
1232
|
-
|
1233
|
-
MyTag = relationship("DjmdMyTag", back_populates="MyTags")
|
1234
|
-
"""The My-Tag list this item belongs to (links to :class:`DjmdMyTag`)."""
|
1235
|
-
Content = relationship("DjmdContent")
|
1236
|
-
"""The content this item belongs to (links to :class:`DjmdContent`)."""
|
1237
|
-
|
1238
|
-
|
1239
|
-
class DjmdPlaylist(Base, StatsFull):
|
1240
|
-
"""Table for storing playlists in the Rekordbox library.
|
1241
|
-
|
1242
|
-
See Also
|
1243
|
-
--------
|
1244
|
-
:class:`DjmdSongPlaylist`: Table for storing the playlist contents.
|
1245
|
-
"""
|
1246
|
-
|
1247
|
-
__tablename__ = "djmdPlaylist"
|
1248
|
-
|
1249
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
1250
|
-
"""The ID (primary key) of the table entry."""
|
1251
|
-
Seq: Mapped[int] = mapped_column(Integer, default=None)
|
1252
|
-
"""The sequence of the playlist (for ordering)."""
|
1253
|
-
Name: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1254
|
-
"""The name of the playlist."""
|
1255
|
-
ImagePath: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1256
|
-
"""The path to the image of the playlist."""
|
1257
|
-
Attribute: Mapped[int] = mapped_column(Integer, default=None)
|
1258
|
-
"""The attribute of the playlist."""
|
1259
|
-
ParentID: Mapped[str] = mapped_column(
|
1260
|
-
VARCHAR(255), ForeignKey("djmdPlaylist.ID"), default=None
|
1261
|
-
)
|
1262
|
-
"""The ID of the parent playlist (:class:`DjmdPlaylist`)."""
|
1263
|
-
SmartList: Mapped[str] = mapped_column(Text, default=None)
|
1264
|
-
"""The smart list settings of the playlist."""
|
1265
|
-
|
1266
|
-
Songs = relationship(
|
1267
|
-
"DjmdSongPlaylist", back_populates="Playlist", cascade="all, delete"
|
1268
|
-
)
|
1269
|
-
"""The contents of the playlist (links to :class:`DjmdSongPlaylist`)."""
|
1270
|
-
Children = relationship(
|
1271
|
-
"DjmdPlaylist",
|
1272
|
-
foreign_keys=ParentID,
|
1273
|
-
backref=backref("Parent", remote_side=[ID]),
|
1274
|
-
cascade="all, delete",
|
1275
|
-
)
|
1276
|
-
"""The child playlists of the playlist (links to :class:`DjmdPlaylist`).
|
1277
|
-
Backrefs to the parent playlist via :attr:`Parent`.
|
1278
|
-
"""
|
1279
|
-
|
1280
|
-
def __repr__(self):
|
1281
|
-
s = f"{self.ID: <2} Name={self.Name}"
|
1282
|
-
return f"<{self.__class__.__name__}({s})>"
|
1283
|
-
|
1284
|
-
|
1285
|
-
class DjmdSongPlaylist(Base, StatsFull):
|
1286
|
-
"""Table for storing playlist contents in the Rekordbox library.
|
1287
|
-
|
1288
|
-
See Also
|
1289
|
-
--------
|
1290
|
-
:class:`DjmdPlaylist`: Table for storing playlists.
|
1291
|
-
"""
|
1292
|
-
|
1293
|
-
__tablename__ = "djmdSongPlaylist"
|
1294
|
-
|
1295
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
1296
|
-
"""The ID (primary key) of the table entry."""
|
1297
|
-
PlaylistID: Mapped[str] = mapped_column(
|
1298
|
-
VARCHAR(255), ForeignKey("djmdPlaylist.ID"), default=None
|
1299
|
-
)
|
1300
|
-
"""The ID of the playlist this item is in (:class:`DjmdPlaylist`)."""
|
1301
|
-
ContentID: Mapped[str] = mapped_column(
|
1302
|
-
VARCHAR(255), ForeignKey("djmdContent.ID"), default=None
|
1303
|
-
)
|
1304
|
-
"""The ID of the content this item belongs to (:class:`DjmdContent`)."""
|
1305
|
-
TrackNo: Mapped[int] = mapped_column(Integer, default=None)
|
1306
|
-
"""The track number of the playlist item (for ordering)."""
|
1307
|
-
|
1308
|
-
Playlist = relationship("DjmdPlaylist", back_populates="Songs")
|
1309
|
-
"""The playlist this item is in (links to :class:`DjmdPlaylist`)."""
|
1310
|
-
Content = relationship("DjmdContent")
|
1311
|
-
"""The content this item belongs to (links to :class:`DjmdContent`)."""
|
1312
|
-
|
1313
|
-
|
1314
|
-
class DjmdRelatedTracks(Base, StatsFull):
|
1315
|
-
"""Table for storing related tracks lists in the Rekordbox library.
|
1316
|
-
|
1317
|
-
See Also
|
1318
|
-
--------
|
1319
|
-
:class:`DjmdSongRelatedTracks`: Table for storing the related tracks contents.
|
1320
|
-
"""
|
1321
|
-
|
1322
|
-
__tablename__ = "djmdRelatedTracks"
|
1323
|
-
|
1324
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
1325
|
-
"""The ID (primary key) of the table entry."""
|
1326
|
-
Seq: Mapped[int] = mapped_column(Integer, default=None)
|
1327
|
-
"""The sequence of the related tracks list (for ordering)."""
|
1328
|
-
Name: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1329
|
-
"""The name of the related tracks list."""
|
1330
|
-
Attribute: Mapped[int] = mapped_column(Integer, default=None)
|
1331
|
-
"""The attribute of the related tracks list."""
|
1332
|
-
ParentID: Mapped[str] = mapped_column(
|
1333
|
-
VARCHAR(255), ForeignKey("djmdRelatedTracks.ID"), default=None
|
1334
|
-
)
|
1335
|
-
"""The ID of the parent related tracks list (:class:`DjmdRelatedTracks`)."""
|
1336
|
-
Criteria: Mapped[str] = mapped_column(Text, default=None)
|
1337
|
-
"""The criteria used to determine the items in the related tracks list."""
|
1338
|
-
|
1339
|
-
Songs = relationship("DjmdSongRelatedTracks", back_populates="RelatedTracks")
|
1340
|
-
"""The contents of the related tracks list
|
1341
|
-
(links to :class:`DjmdSongRelatedTracks`)."""
|
1342
|
-
Children = relationship(
|
1343
|
-
"DjmdRelatedTracks",
|
1344
|
-
foreign_keys=ParentID,
|
1345
|
-
backref=backref("Parent", remote_side=[ID]),
|
1346
|
-
)
|
1347
|
-
"""The child related tracks lists of the related tracks list
|
1348
|
-
(links to :class:`DjmdSongRelatedTracks`).
|
1349
|
-
Backrefs to the parent related tracks list via :attr:`Parent`.
|
1350
|
-
"""
|
1351
|
-
|
1352
|
-
def __repr__(self):
|
1353
|
-
s = f"{self.ID: <2} Name={self.Name}"
|
1354
|
-
return f"<{self.__class__.__name__}({s})>"
|
1355
|
-
|
1356
|
-
|
1357
|
-
class DjmdSongRelatedTracks(Base, StatsFull):
|
1358
|
-
"""Table for storing related tracks list contents in the Rekordbox library.
|
1359
|
-
|
1360
|
-
See Also
|
1361
|
-
--------
|
1362
|
-
:class:`DjmdRelatedTracks`: Table for storing related tracks lists.
|
1363
|
-
"""
|
1364
|
-
|
1365
|
-
__tablename__ = "djmdSongRelatedTracks"
|
1366
|
-
|
1367
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
1368
|
-
"""The ID (primary key) of the table entry."""
|
1369
|
-
RelatedTracksID: Mapped[str] = mapped_column(
|
1370
|
-
VARCHAR(255), ForeignKey("djmdRelatedTracks.ID"), default=None
|
1371
|
-
)
|
1372
|
-
"""The ID of the related tracks list this item is in
|
1373
|
-
(:class:`DjmdRelatedTracks`)."""
|
1374
|
-
ContentID: Mapped[str] = mapped_column(
|
1375
|
-
VARCHAR(255), ForeignKey("djmdContent.ID"), default=None
|
1376
|
-
)
|
1377
|
-
"""The ID of the content this item belongs to (:class:`DjmdContent`)."""
|
1378
|
-
TrackNo: Mapped[int] = mapped_column(Integer, default=None)
|
1379
|
-
"""The track number of the related tracks list item (for ordering)."""
|
1380
|
-
|
1381
|
-
RelatedTracks = relationship("DjmdRelatedTracks", back_populates="Songs")
|
1382
|
-
"""The related tracks list this item is in (links to :class:`DjmdRelatedTracks`)."""
|
1383
|
-
Content = relationship("DjmdContent")
|
1384
|
-
"""The content this item belongs to (links to :class:`DjmdContent`)."""
|
1385
|
-
|
1386
|
-
|
1387
|
-
class DjmdSampler(Base, StatsFull):
|
1388
|
-
"""Table for storing sampler lists in the Rekordbox library.
|
1389
|
-
|
1390
|
-
See Also
|
1391
|
-
--------
|
1392
|
-
:class:`DjmdSongSampler`: Table for storing the sampler contents.
|
1393
|
-
"""
|
1394
|
-
|
1395
|
-
__tablename__ = "djmdSampler"
|
1396
|
-
|
1397
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
1398
|
-
"""The ID (primary key) of the table entry."""
|
1399
|
-
Seq: Mapped[int] = mapped_column(Integer, default=None)
|
1400
|
-
"""The sequence of the sampler list (for ordering)."""
|
1401
|
-
Name: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1402
|
-
"""The name of the sampler list."""
|
1403
|
-
Attribute: Mapped[int] = mapped_column(Integer, default=None)
|
1404
|
-
"""The attribute of the sampler list."""
|
1405
|
-
ParentID: Mapped[str] = mapped_column(
|
1406
|
-
VARCHAR(255), ForeignKey("djmdSampler.ID"), default=None
|
1407
|
-
)
|
1408
|
-
"""The ID of the parent sampler list (:class:`DjmdSampler`)."""
|
1409
|
-
|
1410
|
-
Songs = relationship("DjmdSongSampler", back_populates="Sampler")
|
1411
|
-
"""The contents of the sampler list (links to :class:`DjmdSongSampler`)."""
|
1412
|
-
Children = relationship(
|
1413
|
-
"DjmdSampler",
|
1414
|
-
foreign_keys=ParentID,
|
1415
|
-
backref=backref("Parent", remote_side=[ID]),
|
1416
|
-
)
|
1417
|
-
"""The child sampler lists of the sampler list (links to :class:`DjmdSampler`).
|
1418
|
-
Backrefs to the parent sampler list via :attr:`Parent`.
|
1419
|
-
"""
|
1420
|
-
|
1421
|
-
def __repr__(self):
|
1422
|
-
s = f"{self.ID: <2} Name={self.Name}"
|
1423
|
-
return f"<{self.__class__.__name__}({s})>"
|
1424
|
-
|
1425
|
-
|
1426
|
-
class DjmdSongSampler(Base, StatsFull):
|
1427
|
-
"""Table for storing sampler list contents in the Rekordbox library.
|
1428
|
-
|
1429
|
-
See Also
|
1430
|
-
--------
|
1431
|
-
:class:`DjmdSampler`: Table for storing sampler lists.
|
1432
|
-
"""
|
1433
|
-
|
1434
|
-
__tablename__ = "djmdSongSampler"
|
1435
|
-
|
1436
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
1437
|
-
"""The ID (primary key) of the table entry."""
|
1438
|
-
SamplerID: Mapped[str] = mapped_column(
|
1439
|
-
VARCHAR(255), ForeignKey("djmdSampler.ID"), default=None
|
1440
|
-
)
|
1441
|
-
"""The ID of the sampler list this item is in (:class:`DjmdSampler`)."""
|
1442
|
-
ContentID: Mapped[str] = mapped_column(
|
1443
|
-
VARCHAR(255), ForeignKey("djmdContent.ID"), default=None
|
1444
|
-
)
|
1445
|
-
"""The ID of the content this item belongs to (:class:`DjmdContent`)."""
|
1446
|
-
TrackNo: Mapped[int] = mapped_column(Integer, default=None)
|
1447
|
-
"""The track number of the sampler list item (for ordering)."""
|
1448
|
-
|
1449
|
-
Sampler = relationship("DjmdSampler", back_populates="Songs")
|
1450
|
-
"""The sampler list this item is in (links to :class:`DjmdSampler`)."""
|
1451
|
-
Content = relationship("DjmdContent")
|
1452
|
-
"""The content this item belongs to (links to :class:`DjmdContent`)."""
|
1453
|
-
|
1454
|
-
|
1455
|
-
class DjmdSongTagList(Base, StatsFull):
|
1456
|
-
"""Table for storing tag list contents in the Rekordbox library."""
|
1457
|
-
|
1458
|
-
__tablename__ = "djmdSongTagList"
|
1459
|
-
|
1460
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
1461
|
-
"""The ID (primary key) of the table entry."""
|
1462
|
-
ContentID: Mapped[str] = mapped_column(
|
1463
|
-
VARCHAR(255), ForeignKey("djmdContent.ID"), default=None
|
1464
|
-
)
|
1465
|
-
"""The ID of the content this item belongs to (:class:`DjmdContent`)."""
|
1466
|
-
TrackNo: Mapped[int] = mapped_column(Integer, default=None)
|
1467
|
-
"""The track number of the tag list item (for ordering)."""
|
1468
|
-
|
1469
|
-
Content = relationship("DjmdContent")
|
1470
|
-
"""The content this item belongs to (links to :class:`DjmdContent`)."""
|
1471
|
-
|
1472
|
-
|
1473
|
-
class DjmdSort(Base, StatsFull):
|
1474
|
-
"""Table for storing sort lists in the Rekordbox library.
|
1475
|
-
|
1476
|
-
See Also
|
1477
|
-
--------
|
1478
|
-
:class:`DjmdSongSort`: Table for storing the sort list contents.
|
1479
|
-
"""
|
1480
|
-
|
1481
|
-
__tablename__ = "djmdSort"
|
1482
|
-
|
1483
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
1484
|
-
"""The ID (primary key) of the table entry."""
|
1485
|
-
MenuItemID: Mapped[str] = mapped_column(
|
1486
|
-
VARCHAR(255), ForeignKey("djmdMenuItems.ID"), default=None
|
1487
|
-
)
|
1488
|
-
"""The ID of the menu item this sort list is in (:class:`DjmdMenuItems`)."""
|
1489
|
-
Seq: Mapped[int] = mapped_column(Integer, default=None)
|
1490
|
-
"""The sequence of the sort list (for ordering)."""
|
1491
|
-
Disable: Mapped[int] = mapped_column(Integer, default=None)
|
1492
|
-
"""Whether the sort list is disabled."""
|
1493
|
-
|
1494
|
-
MenuItem = relationship("DjmdMenuItems", foreign_keys=MenuItemID)
|
1495
|
-
"""The menu item this sort list is in (links to :class:`DjmdMenuItems`)."""
|
1496
|
-
|
1497
|
-
|
1498
|
-
class HotCueBanklistCue(Base, StatsFull):
|
1499
|
-
"""Table for storing hot cue bank list contents in the Rekordbox library."""
|
1500
|
-
|
1501
|
-
__tablename__ = "hotCueBanklistCue"
|
1502
|
-
|
1503
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
1504
|
-
"""The ID (primary key) of the table entry."""
|
1505
|
-
HotCueBanklistID: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1506
|
-
"""The ID of the hot cue bank list."""
|
1507
|
-
Cues: Mapped[str] = mapped_column(Text, default=None)
|
1508
|
-
"""The hot cue bank list contents."""
|
1509
|
-
rb_cue_count: Mapped[int] = mapped_column(Integer, default=None)
|
1510
|
-
"""The number of hot cues in the bank list."""
|
1511
|
-
|
1512
|
-
|
1513
|
-
class DjmdProperty(Base, StatsTime):
|
1514
|
-
"""Table for storing properties in the Rekordbox library."""
|
1515
|
-
|
1516
|
-
__tablename__ = "djmdProperty"
|
1517
|
-
|
1518
|
-
DBID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
1519
|
-
"""The ID (primary key) of the table entry."""
|
1520
|
-
DBVersion: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1521
|
-
"""The version of the database."""
|
1522
|
-
BaseDBDrive: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1523
|
-
"""The drive the database is stored on."""
|
1524
|
-
CurrentDBDrive: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1525
|
-
"""The drive the database is currently stored on."""
|
1526
|
-
DeviceID: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1527
|
-
"""The ID of the device the database is stored on."""
|
1528
|
-
Reserved1: Mapped[str] = mapped_column(Text, default=None)
|
1529
|
-
"""Reserved column."""
|
1530
|
-
Reserved2: Mapped[str] = mapped_column(Text, default=None)
|
1531
|
-
"""Reserved column."""
|
1532
|
-
Reserved3: Mapped[str] = mapped_column(Text, default=None)
|
1533
|
-
"""Reserved column."""
|
1534
|
-
Reserved4: Mapped[str] = mapped_column(Text, default=None)
|
1535
|
-
"""Reserved column."""
|
1536
|
-
Reserved5: Mapped[str] = mapped_column(Text, default=None)
|
1537
|
-
"""Reserved column."""
|
1538
|
-
|
1539
|
-
|
1540
|
-
class ImageFile(Base, StatsFull):
|
1541
|
-
"""Table for storing image files in the Rekordbox library.""" ""
|
1542
|
-
|
1543
|
-
__tablename__ = "imageFile"
|
1544
|
-
|
1545
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
1546
|
-
"""The ID (primary key) of the table entry."""
|
1547
|
-
TableName: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1548
|
-
"""The name of the table the image file is in."""
|
1549
|
-
TargetUUID: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1550
|
-
"""The UUID of the target the image file is for."""
|
1551
|
-
TargetID: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1552
|
-
"""The ID of the target the image file is for."""
|
1553
|
-
Path: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1554
|
-
"""The path to the image file."""
|
1555
|
-
Hash: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1556
|
-
"""The hash of the image file."""
|
1557
|
-
Size: Mapped[int] = mapped_column(Integer, default=None)
|
1558
|
-
"""The size of the image file."""
|
1559
|
-
rb_local_path: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1560
|
-
"""The local path to the image file."""
|
1561
|
-
rb_insync_hash: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1562
|
-
"""The hash of the image file."""
|
1563
|
-
rb_insync_local_usn: Mapped[int] = mapped_column(BigInteger, default=None)
|
1564
|
-
"""The local USN of the in-sync image file."""
|
1565
|
-
rb_file_hash_dirty: Mapped[int] = mapped_column(Integer, default=0)
|
1566
|
-
"""Whether the hash of the image file is dirty."""
|
1567
|
-
rb_local_file_status: Mapped[int] = mapped_column(Integer, default=0)
|
1568
|
-
"""The status of the image file."""
|
1569
|
-
rb_in_progress: Mapped[int] = mapped_column(SmallInteger, default=0)
|
1570
|
-
"""Whether the image file is in progress."""
|
1571
|
-
rb_process_type: Mapped[int] = mapped_column(Integer, default=0)
|
1572
|
-
"""The type of process the image file is in."""
|
1573
|
-
rb_temp_path: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1574
|
-
"""The temporary path of the image file."""
|
1575
|
-
rb_priority: Mapped[int] = mapped_column(Integer, default=50)
|
1576
|
-
"""The priority of the image file."""
|
1577
|
-
rb_file_size_dirty: Mapped[int] = mapped_column(Integer, default=0)
|
1578
|
-
"""Whether the size of the image file is dirty."""
|
1579
|
-
|
1580
|
-
|
1581
|
-
class SettingFile(Base, StatsFull):
|
1582
|
-
"""Table for storing setting files in the Rekordbox library."""
|
1583
|
-
|
1584
|
-
__tablename__ = "settingFile"
|
1585
|
-
|
1586
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
1587
|
-
"""The ID (primary key) of the table entry."""
|
1588
|
-
Path: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1589
|
-
"""The path to the setting file."""
|
1590
|
-
Hash: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1591
|
-
"""The hash of the setting file."""
|
1592
|
-
Size: Mapped[int] = mapped_column(Integer, default=None)
|
1593
|
-
"""The size of the setting file."""
|
1594
|
-
rb_local_path: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1595
|
-
"""The local path to the setting file."""
|
1596
|
-
rb_insync_hash: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1597
|
-
"""The hash of the in-sync setting file."""
|
1598
|
-
rb_insync_local_usn: Mapped[int] = mapped_column(BigInteger, default=None)
|
1599
|
-
"""The local USN of the setting file."""
|
1600
|
-
rb_file_hash_dirty: Mapped[int] = mapped_column(Integer, default=0)
|
1601
|
-
"""Whether the hash of the setting file is dirty."""
|
1602
|
-
rb_file_size_dirty: Mapped[int] = mapped_column(Integer, default=0)
|
1603
|
-
"""Whether the size of the setting file is dirty."""
|
1604
|
-
|
1605
|
-
|
1606
|
-
class UuidIDMap(Base, StatsFull):
|
1607
|
-
"""Table for storing UUID to ID mappings in the Rekordbox library."""
|
1608
|
-
|
1609
|
-
__tablename__ = "uuidIDMap"
|
1610
|
-
|
1611
|
-
ID: Mapped[str] = mapped_column(VARCHAR(255), primary_key=True)
|
1612
|
-
"""The ID (primary key) of the table entry."""
|
1613
|
-
TableName: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1614
|
-
"""The name of the table the mapping is used for."""
|
1615
|
-
TargetUUID: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1616
|
-
"""The UUID of the mapping."""
|
1617
|
-
CurrentID: Mapped[str] = mapped_column(VARCHAR(255), default=None)
|
1618
|
-
"""The ID of the mapping."""
|