Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
DatabaseUtils Class Reference

#include <DatabaseUtils.h>

Static Public Member Functions

static MediaType MediaTypeFromVideoContentType (VideoDbContentType videoContentType)
 
static std::string GetField (Field field, const MediaType &mediaType, DatabaseQueryPart queryPart)
 
static int GetField (Field field, const MediaType &mediaType)
 
static int GetFieldIndex (Field field, const MediaType &mediaType)
 
static bool GetSelectFields (const Fields &fields, const MediaType &mediaType, FieldList &selectFields)
 
static bool GetFieldValue (const dbiplus::field_value &fieldValue, CVariant &variantValue)
 
static bool GetDatabaseResults (const MediaType &mediaType, const FieldList &fields, const std::unique_ptr< dbiplus::Dataset > &dataset, DatabaseResults &results)
 
static std::string BuildLimitClause (int end, int start=0)
 
static std::string BuildLimitClauseOnly (int end, int start=0)
 
static size_t GetLimitCount (int end, int start)
 

Member Function Documentation

◆ BuildLimitClause()

std::string DatabaseUtils::BuildLimitClause ( int end,
int start = 0 )
static

◆ BuildLimitClauseOnly()

std::string DatabaseUtils::BuildLimitClauseOnly ( int end,
int start = 0 )
static

◆ GetDatabaseResults()

bool DatabaseUtils::GetDatabaseResults ( const MediaType & mediaType,
const FieldList & fields,
const std::unique_ptr< dbiplus::Dataset > & dataset,
DatabaseResults & results )
static

◆ GetField() [1/2]

int DatabaseUtils::GetField ( Field field,
const MediaType & mediaType )
static

◆ GetField() [2/2]

std::string DatabaseUtils::GetField ( Field field,
const MediaType & mediaType,
DatabaseQueryPart queryPart )
static

◆ GetFieldIndex()

int DatabaseUtils::GetFieldIndex ( Field field,
const MediaType & mediaType )
static

◆ GetFieldValue()

bool DatabaseUtils::GetFieldValue ( const dbiplus::field_value & fieldValue,
CVariant & variantValue )
static

◆ GetLimitCount()

size_t DatabaseUtils::GetLimitCount ( int end,
int start )
static

◆ GetSelectFields()

bool DatabaseUtils::GetSelectFields ( const Fields & fields,
const MediaType & mediaType,
FieldList & selectFields )
static

◆ MediaTypeFromVideoContentType()

MediaType DatabaseUtils::MediaTypeFromVideoContentType ( VideoDbContentType videoContentType)
static

The documentation for this class was generated from the following files: