CRUDlex\MySQLData::generateUUID PHP Method

generateUUID() protected method

Generates a new UUID.
protected generateUUID ( ) : string | null
return string | null the new UUID or null if this instance isn't configured to do so
    protected function generateUUID()
    {
        $uuid = null;
        if ($this->useUUIDs) {
            $sql = 'SELECT UUID() as id';
            $result = $this->database->fetchAssoc($sql);
            $uuid = $result['id'];
        }
        return $uuid;
    }