Kaba class Database ed
...
Syntax ed
class Database
var files: shared![Collection]
var lists: shared![Collection]
var m: shared![Mongo]
var medium: shared![Collection]
# constructors
func mut __init__()
# functions
func mut add_to_list(name: string, _ids: string[])
func by_hash(hash: string) -> DbFile
func by_id(id: string) -> DbFile
func mut check()
func mut check_existence(files: DbFile[])
func mut create_list(name: string)
func mut delete_by_path(path: Path)
func mut delete_list(name: string)
func mut drop(f: DbFile)
func find(filter: string) -> DbFile[]
func find_by_path(path: Path) -> DbFile
func get_in_dir(_dir: Path, recursive: bool) -> DbFile[]
func get_list(name: string) -> string[]
func get_medium_data(f: DbFile) -> Any
func has_hash(hash: string) -> bool
func has_medium(f: DbFile) -> bool
func has_path(path: Path) -> bool
func info()
func list_lists() -> string[]
func mut list_remove(name: string, i0: i32, i1: i32)
func list_tags(key: string) -> TagResult[]
func mediumify(out f: DbFile)
func mut save(out f: DbFile)
func mut update_links(files: DbFile[])
Functions ed
- func mut add_to_list(name: string, _ids: string[])
- ...
- func by_hash(hash: string) -> DbFile
- ...
- func by_id(id: string) -> DbFile
- ...
- func mut check()
- ...
- func mut check_existence(files: DbFile[])
- ...
- func mut create_list(name: string)
- ...
- func mut delete_by_path(path: Path)
- ...
- func mut delete_list(name: string)
- ...
- func mut drop(f: DbFile)
- ...
- func find(filter: string) -> DbFile[]
- ...
- func find_by_path(path: Path) -> DbFile
- ...
- func get_in_dir(_dir: Path, recursive: bool) -> DbFile[]
- ...
- func get_list(name: string) -> string[]
- ...
- func get_medium_data(f: DbFile) -> Any
- ...
- func has_hash(hash: string) -> bool
- ...
- func has_medium(f: DbFile) -> bool
- ...
- func has_path(path: Path) -> bool
- ...
- func info()
- ...
- func list_lists() -> string[]
- ...
- func mut list_remove(name: string, i0: i32, i1: i32)
- ...
- func list_tags(key: string) -> TagResult[]
- ...
- func mediumify(out f: DbFile)
- ...
- func mut save(out f: DbFile)
- ...
- func mut update_links(files: DbFile[])
- ...
Elements ed
- var files: shared![Collection]
- ...
- var lists: shared![Collection]
- ...
- var m: shared![Mongo]
- ...
- var medium: shared![Collection]
- ...