API reference@melon-db/db
MelonSchemaCollections
@melon-db/db — MelonSchemaCollections
Interface: MelonSchema<Collections>
Defined in: packages/melon-db/src/schema.ts:47
Type Parameters
| Type Parameter | Default type |
|---|---|
Collections extends Record<string, CollectionMetadata> | Record<string, CollectionMetadata> |
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
collections | readonly | Collections | packages/melon-db/src/schema.ts:54 |
version | readonly | number | packages/melon-db/src/schema.ts:53 |
Methods
getCollection()
getCollection<
Name>(name):Collections[Name]
Defined in: packages/melon-db/src/schema.ts:55
Type Parameters
| Type Parameter |
|---|
Name extends string |
Parameters
| Parameter | Type |
|---|---|
name | Name |
Returns
Collections[Name]
