docs/Script API/classes/Backend_Script_API.BRecentNote.html
RecentNote represents recently visited note.
blobId?dateCreated?dateModified?isProtected?isSynced?noteIdnotePathutcDateCreatedutcDateModified?
beccaisDeletedentityNamehashedPropertiesprimaryKeyName
_getContent_setContentbeforeSavinggenerateHashgetPojogetPojoToSavegetUtcDateChangedhasStringContentinitmarkAsDeletedmarkAsDeletedSimpleputEntityChangesaveupdateFromRow
new BRecentNote(row: RecentNoteRow): BRecentNote
OptionalblobIdblobId?: string
OptionaldateCreateddateCreated?: string
OptionaldateModifieddateModified?: string
OptionalisProtectedisProtected?: boolean
OptionalisSyncedisSynced?: boolean
noteId: string
notePath: string
utcDateCreated: string
OptionalutcDateModifiedutcDateModified?: string
Protectedbeccaget becca(): default
get isDeleted(): boolean
StaticentityNameget entityName(): string
StatichashedPropertiesget hashedProperties(): string[]
StaticprimaryKeyNameget primaryKeyName(): string
Protected_getContent_getContent(): string | Buffer<ArrayBufferLike>
Protected_setContent_setContent(content: string | Buffer<ArrayBufferLike>, opts?: ContentOpts): void
ProtectedbeforeSavingbeforeSaving(opts?: {}): void
Optionalopts: {}generateHash(isDeleted?: boolean): string
OptionalisDeleted: booleangetPojo(): { noteId: string; notePath: string; utcDateCreated: string }
ProtectedgetPojoToSavegetPojoToSave(): {}
getUtcDateChanged(): string
hasStringContent(): boolean
init(): void
markAsDeleted(deleteId?: null | string): void
Mark the entity as (soft) deleted. It will be completely erased later.
This is a low-level method, for notes and branches use note.deleteNote() and 'branch.deleteBranch()` instead.
markAsDeletedSimple(): void
ProtectedputEntityChangeputEntityChange(isDeleted: boolean): void
save(opts?: {}): this
Saves entity - executes SQL, but doesn't commit the transaction on its own
Optionalopts: {}updateFromRow(row: RecentNoteRow): void
Member Visibility
ThemeOSLightDark
Constructors constructor Properties blobIddateCreateddateModifiedisProtectedisSyncednoteIdnotePathutcDateCreatedutcDateModified Accessors beccaisDeletedentityNamehashedPropertiesprimaryKeyName Methods _getContent_setContentbeforeSavinggenerateHashgetPojogetPojoToSavegetUtcDateChangedhasStringContentinitmarkAsDeletedmarkAsDeletedSimpleputEntityChangesaveupdateFromRow