``create_database`` writes the current database (.bndb) out to the specified file. :param str filename: path and filename to write the bndb to, this string `should` have ".bndb" appended to it. :param callback progress_func: optional function to be called with the current progress and total
( self, filename: str, progress_func: Optional[ProgressFuncType] = None, settings: Optional['filemetadata.SaveSettings'] = None )
| 4196 | return False |
| 4197 | |
| 4198 | def create_database( |
| 4199 | self, filename: str, progress_func: Optional[ProgressFuncType] = None, |
| 4200 | settings: Optional['filemetadata.SaveSettings'] = None |
| 4201 | ) -> bool: |
| 4202 | """ |
| 4203 | ``create_database`` writes the current database (.bndb) out to the specified file. |
| 4204 | |
| 4205 | :param str filename: path and filename to write the bndb to, this string `should` have ".bndb" appended to it. |
| 4206 | :param callback progress_func: optional function to be called with the current progress and total count. |
| 4207 | :param SaveSettings settings: optional argument for special save options. |
| 4208 | :return: True on success, False on failure |
| 4209 | :rtype: bool |
| 4210 | |
| 4211 | .. warning:: The calling thread must not hold a lock on the BinaryView instance as this action is run on the main thread which requires the lock. |
| 4212 | |
| 4213 | :Example: |
| 4214 | >>> settings = SaveSettings() |
| 4215 | >>> bv.create_database(f"{bv.file.filename}.bndb", None, settings) |
| 4216 | True |
| 4217 | """ |
| 4218 | return self._file.create_database(filename, progress_func, settings) |
| 4219 | |
| 4220 | def save_auto_snapshot( |
| 4221 | self, progress_func: Optional[ProgressFuncType] = None, settings: Optional['filemetadata.SaveSettings'] = None |