db
Classes
IndexedDBSource
Implements
Constructors
new IndexedDBSource()
new IndexedDBSource(): IndexedDBSource
Returns
Properties
graphs
graphs: Observable<Graph[]>;
Implementation of
Defined in
tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:56
numGraphs
numGraphs: Observable<number>;
Implementation of
Defined in
tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:51
Accessors
macroblocks
get macroblocks(): Observable<Graph[]>
Returns
Observable
<Graph
[]>
Implementation of
Defined in
tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:58
numMacroBlocks
get numMacroBlocks(): Observable<number>
Returns
Observable
<number
>
Implementation of
Defined in
tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:52
Methods
clearGraphs()
clearGraphs(): Promise<void>
Returns
Promise
<void
>
Implementation of
Defined in
tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:18
clearMacroBlocks()
clearMacroBlocks(): Promise<void>
Returns
Promise
<void
>
Implementation of
Defined in
tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:21
deleteMacro()
deleteMacro(id): Promise<void>
Parameters
• id: string
Returns
Promise
<void
>
Implementation of
Defined in
tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:15
getGraph()
getGraph(id): Promise<undefined | Graph>
Parameters
• id: string
Returns
Implementation of
Defined in
tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:35
getGraphs()
getGraphs(): Promise<Graph[]>
Returns
Implementation of
Defined in
tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:24
getMacroBlock()
getMacroBlock(id): Promise<undefined | MacroBlock>
Parameters
• id: string
Returns
Promise
<undefined
| MacroBlock
>
Implementation of
Defined in
tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:31
getMacroBlocks()
getMacroBlocks(): Promise<MacroBlock[]>
Returns
Defined in
tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:27
saveGraph()
saveGraph(graph): Promise<string>
Parameters
• graph: Graph
Returns
Promise
<string
>
Implementation of
Defined in
tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:41
saveGraphs()
saveGraphs(graphs): Promise<string>
Parameters
• graphs: Graph
[]
Returns
Promise
<string
>
Implementation of
Defined in
tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:47
saveMacroBlock()
saveMacroBlock(graph): Promise<string>
Parameters
• graph: MacroBlock
Returns
Promise
<string
>
Implementation of
Defined in
tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:38
saveMacroBlocks()
saveMacroBlocks(graphs): Promise<string>
Parameters
• graphs: MacroBlock
[]
Returns
Promise
<string
>
Implementation of
Defined in
tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:44
Variables
db
const db: Dexie & object;
Database instance to work with IndexedDB.
Type declaration
graphs
graphs: EntityTable<Graph, "id">;
Defined in
tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:5