10 |
|
|
11 |
|
#include "MediaFolder.hpp" |
12 |
|
|
13 |
< |
MediaFolder::MediaFolder(_R<dbi::Connection>& connection, const api::Path& path) : connection(connection), path(path) |
13 |
> |
MediaFolder::MediaFolder(const _R<dbi::Connection>& connection, const api::Path& path) : connection(connection), path(path) |
14 |
|
{ |
15 |
|
_R<dbi::ResultSet> root_(connection->Parse(_B("SELECT root FROM folders WHERE path = ?"))->Execute(path.GetPath())); |
16 |
|
|
20 |
|
throw; |
21 |
|
} |
22 |
|
|
23 |
< |
MediaFolder::MediaFolder(_R<dbi::Connection>& connection, const api::Path& path, const api::Path& root) : connection(connection), path(path), root(root) |
23 |
> |
MediaFolder::MediaFolder(const _R<dbi::Connection>& connection, const api::Path& path, const api::Path& root) : connection(connection), path(path), root(root) |
24 |
|
{ |
25 |
|
_R<dbi::ResultSet> path_(connection->Parse(_B("SELECT path FROM folders WHERE path = ?"))->Execute(path.GetPath())); |
26 |
|
|