Aller au contenu

db

Ce contenu n’est pas encore disponible dans votre langue.

Classes

IndexedDBSource

Implements

Constructors

new IndexedDBSource()
new IndexedDBSource(): IndexedDBSource
Returns

IndexedDBSource

Properties

graphs
graphs: Observable<Graph[]>;
Implementation of

Database.graphs

Defined in

tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:56

numGraphs
numGraphs: Observable<number>;
Implementation of

Database.numGraphs

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

Database.macroblocks

Defined in

tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:58

numMacroBlocks
get numMacroBlocks(): Observable<number>
Returns

Observable<number>

Implementation of

Database.numMacroBlocks

Defined in

tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:52

Methods

clearGraphs()
clearGraphs(): Promise<void>
Returns

Promise<void>

Implementation of

Database.clearGraphs

Defined in

tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:18

clearMacroBlocks()
clearMacroBlocks(): Promise<void>
Returns

Promise<void>

Implementation of

Database.clearMacroBlocks

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

Database.deleteMacro

Defined in

tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:15

getGraph()
getGraph(id): Promise<undefined | Graph>
Parameters

id: string

Returns

Promise<undefined | Graph>

Implementation of

Database.getGraph

Defined in

tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:35

getGraphs()
getGraphs(): Promise<Graph[]>
Returns

Promise<Graph[]>

Implementation of

Database.getGraphs

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

Database.getMacroBlock

Defined in

tmp/graph-editor/src/lib/graph-editor/storage/db.svelte.ts:31

getMacroBlocks()
getMacroBlocks(): Promise<MacroBlock[]>
Returns

Promise<MacroBlock[]>

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

Database.saveGraph

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

Database.saveGraphs

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

Database.saveMacroBlock

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

Database.saveMacroBlocks

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