lxd/db/projects.mapper.go
func (c *ClusterTx) ProjectExists(name string) (bool, error) {
	_, err := c.ProjectID(name)
	if err != nil {
		if err == ErrNoSuchObject {
			return false, nil
		}
		return false, err
	}

	return true, nil
}
func (c *ClusterTx) ProjectExists(name string) (bool, error) {
	_, err := c.ProjectID(name)
	if err != nil {
		if err == ErrNoSuchObject {
			return false, nil
		}
		return false, err
	}

	return true, nil
}
// ProjectExists checks if a project with the given key exists.