Skip to content

Commit

Permalink
tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalune committed Mar 19, 2024
1 parent c35f907 commit 5b19c36
Show file tree
Hide file tree
Showing 26 changed files with 841 additions and 136 deletions.
130 changes: 130 additions & 0 deletions docs/docs/classes/DatabaseAdapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,23 @@ custom_edit_url: null

## Methods

### addParticipantToRoom

**addParticipantToRoom**(`userId`, `roomId`): `Promise`\<`void`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `userId` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\` |
| `roomId` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\` |

#### Returns

`Promise`\<`void`\>

___

### countMemoriesByRoomId

**countMemoriesByRoomId**(`room_id`, `unique?`, `tableName?`): `Promise`\<`number`\>
Expand Down Expand Up @@ -112,6 +129,22 @@ ___

___

### createRoom

**createRoom**(`name`): `Promise`\<\`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `name` | `string` |

#### Returns

`Promise`\<\`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\`\>

___

### getAccountById

**getAccountById**(`userId`): `Promise`\<``null`` \| [`Account`](../interfaces/Account.md)\>
Expand Down Expand Up @@ -242,6 +275,38 @@ ___

___

### getRoomsByParticipant

**getRoomsByParticipant**(`userId`): `Promise`\<\`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\`[]\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `userId` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\` |

#### Returns

`Promise`\<\`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\`[]\>

___

### getRoomsByParticipants

**getRoomsByParticipants**(`userIds`): `Promise`\<\`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\`[]\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `userIds` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\`[] |

#### Returns

`Promise`\<\`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\`[]\>

___

### log

**log**(`params`): `Promise`\<`void`\>
Expand All @@ -262,6 +327,22 @@ ___

___

### removeAllGoalsByRoomId

**removeAllGoalsByRoomId**(`room_id`): `Promise`\<`void`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `room_id` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\` |

#### Returns

`Promise`\<`void`\>

___

### removeAllMemoriesByRoomId

**removeAllMemoriesByRoomId**(`room_id`, `tableName`): `Promise`\<`void`\>
Expand All @@ -279,6 +360,22 @@ ___

___

### removeGoal

**removeGoal**(`goalId`): `Promise`\<`void`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `goalId` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\` |

#### Returns

`Promise`\<`void`\>

___

### removeMemory

**removeMemory**(`memoryId`, `tableName`): `Promise`\<`void`\>
Expand All @@ -296,6 +393,39 @@ ___

___

### removeParticipantFromRoom

**removeParticipantFromRoom**(`userId`, `roomId`): `Promise`\<`void`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `userId` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\` |
| `roomId` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\` |

#### Returns

`Promise`\<`void`\>

___

### removeRoom

**removeRoom**(`roomId`): `Promise`\<`void`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `roomId` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\` |

#### Returns

`Promise`\<`void`\>

___

### searchMemories

**searchMemories**(`params`): `Promise`\<[`Memory`](../interfaces/Memory.md)[]\>
Expand Down
162 changes: 162 additions & 0 deletions docs/docs/classes/SqliteDatabaseAdapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,27 @@ custom_edit_url: null

## Methods

### addParticipantToRoom

**addParticipantToRoom**(`userId`, `roomId`): `Promise`\<`void`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `userId` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\` |
| `roomId` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\` |

#### Returns

`Promise`\<`void`\>

#### Overrides

[DatabaseAdapter](DatabaseAdapter.md).[addParticipantToRoom](DatabaseAdapter.md#addparticipanttoroom)

___

### countMemoriesByRoomId

**countMemoriesByRoomId**(`room_id`, `unique?`, `tableName?`): `Promise`\<`number`\>
Expand Down Expand Up @@ -140,6 +161,26 @@ ___

___

### createRoom

**createRoom**(`name`): `Promise`\<\`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `name` | `string` |

#### Returns

`Promise`\<\`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\`\>

#### Overrides

[DatabaseAdapter](DatabaseAdapter.md).[createRoom](DatabaseAdapter.md#createroom)

___

### getAccountById

**getAccountById**(`userId`): `Promise`\<``null`` \| [`Account`](../interfaces/Account.md)\>
Expand Down Expand Up @@ -298,6 +339,46 @@ ___

___

### getRoomsByParticipant

**getRoomsByParticipant**(`userId`): `Promise`\<\`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\`[]\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `userId` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\` |

#### Returns

`Promise`\<\`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\`[]\>

#### Overrides

[DatabaseAdapter](DatabaseAdapter.md).[getRoomsByParticipant](DatabaseAdapter.md#getroomsbyparticipant)

___

### getRoomsByParticipants

**getRoomsByParticipants**(`userIds`): `Promise`\<\`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\`[]\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `userIds` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\`[] |

#### Returns

`Promise`\<\`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\`[]\>

#### Overrides

[DatabaseAdapter](DatabaseAdapter.md).[getRoomsByParticipants](DatabaseAdapter.md#getroomsbyparticipants)

___

### log

**log**(`params`): `Promise`\<`void`\>
Expand All @@ -322,6 +403,26 @@ ___

___

### removeAllGoalsByRoomId

**removeAllGoalsByRoomId**(`room_id`): `Promise`\<`void`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `room_id` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\` |

#### Returns

`Promise`\<`void`\>

#### Overrides

[DatabaseAdapter](DatabaseAdapter.md).[removeAllGoalsByRoomId](DatabaseAdapter.md#removeallgoalsbyroomid)

___

### removeAllMemoriesByRoomId

**removeAllMemoriesByRoomId**(`room_id`, `tableName`): `Promise`\<`void`\>
Expand All @@ -343,6 +444,26 @@ ___

___

### removeGoal

**removeGoal**(`goalId`): `Promise`\<`void`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `goalId` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\` |

#### Returns

`Promise`\<`void`\>

#### Overrides

[DatabaseAdapter](DatabaseAdapter.md).[removeGoal](DatabaseAdapter.md#removegoal)

___

### removeMemory

**removeMemory**(`memoryId`, `tableName`): `Promise`\<`void`\>
Expand All @@ -364,6 +485,47 @@ ___

___

### removeParticipantFromRoom

**removeParticipantFromRoom**(`userId`, `roomId`): `Promise`\<`void`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `userId` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\` |
| `roomId` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\` |

#### Returns

`Promise`\<`void`\>

#### Overrides

[DatabaseAdapter](DatabaseAdapter.md).[removeParticipantFromRoom](DatabaseAdapter.md#removeparticipantfromroom)

___

### removeRoom

**removeRoom**(`roomId`): `Promise`\<`void`\>

#### Parameters

| Name | Type |
| :------ | :------ |
| `roomId` | \`$\{string}-$\{string}-$\{string}-$\{string}-$\{string}\` |

#### Returns

`Promise`\<`void`\>

#### Overrides

[DatabaseAdapter](DatabaseAdapter.md).[removeRoom](DatabaseAdapter.md#removeroom)

___

### searchMemories

**searchMemories**(`params`): `Promise`\<[`Memory`](../interfaces/Memory.md)[]\>
Expand Down
Loading

0 comments on commit 5b19c36

Please sign in to comment.