Upload a file, with database, to the remote under the given project `project` - Remote project under which to place the new file `parent_folder` - Optional parent folder in which to place this file `metadata` - Local file with database `name_changeset` - Function to call for naming a pushed changeset, if necessary
(
project: &RemoteProject,
parent_folder: Option<&RemoteFolder>,
metadata: &FileMetadata,
name_changeset: N,
)
| 85 | /// * `metadata` - Local file with database |
| 86 | /// * `name_changeset` - Function to call for naming a pushed changeset, if necessary |
| 87 | pub fn upload_database<N: NameChangeset>( |
| 88 | project: &RemoteProject, |
| 89 | parent_folder: Option<&RemoteFolder>, |
| 90 | metadata: &FileMetadata, |
| 91 | name_changeset: N, |
| 92 | ) -> Result<Ref<RemoteFile>, ()> { |
| 93 | upload_database_with_progress( |
| 94 | project, |
| 95 | parent_folder, |
| 96 | metadata, |
| 97 | name_changeset, |
| 98 | NoProgressCallback, |
| 99 | ) |
| 100 | } |
| 101 | |
| 102 | /// Upload a file, with database, to the remote under the given project |
| 103 | /// |
no test coverage detected