alpha2 (#2)
- Change multiple field matching to enum - Implement auto-generated IDs Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
@@ -12,6 +12,14 @@ class Configuration
|
||||
/** @var string The name of the ID field used in the database (will be treated as the primary key) */
|
||||
public static string $idField = 'id';
|
||||
|
||||
/** @var AutoId The automatic ID generation process to use */
|
||||
public static AutoId $autoId = AutoId::None;
|
||||
|
||||
/**
|
||||
* @var int The number of characters a string generated by `AutoId::RandomString` will have (must be an even number)
|
||||
*/
|
||||
public static int $idStringLength = 16;
|
||||
|
||||
/** @var string The data source name (DSN) of the connection string */
|
||||
public static string $pdoDSN = '';
|
||||
|
||||
@@ -59,7 +67,9 @@ class Configuration
|
||||
return self::$_pdo;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Clear the current PDO instance
|
||||
*/
|
||||
public static function resetPDO(): void
|
||||
{
|
||||
self::$_pdo = null;
|
||||
|
||||
Reference in New Issue
Block a user