You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature mostly already exists in v0.4.4. This issue is for tracking progress for this feature in the TypeScript rewrite of this package.
Tests to confirm this feature should be:
Golden Path Tests
A SuperCamo static method should be able to create and connect to a new database, returning a NedbClient instance.
A SuperCamo static method should be able to connect to a previously-created database, returning a NedbClient instance.
A SuperCamo static method should be able to retrieve a list of names of all databases currently connected.
A SuperCamo static method should be able to retrieve a singular NedbClient instance representing a connected database, just from a provided database name.
A SuperCamo static property should exist as an object representing connected databases, with the name of each of the databases as the key for each connected database's NedbClient instance.
A SuperCamo static method should be able to disconnect from a connected database.
A SuperCamo static method should be able to disconnect from and delete a connected database.
Error-Handling Tests
A SuperCamo static method won't connect to a database (and thus create a database client instance) if that database is already connected (is already an instance in the SuperCamo connected client list). This should throw an error.
A SuperCamo static "clientDelete" method won't delete any databases or database data if no database matches a given name. This should NOT throw an error, but just return 0 (for "0 databases deleted").
A SuperCamo static "clientDisconnect" method won't disconnect from any databases if no database matches a given name. This should NOT throw an error, but just return 0 (for "0 databases disconnected").
The text was updated successfully, but these errors were encountered:
This feature mostly already exists in v0.4.4. This issue is for tracking progress for this feature in the TypeScript rewrite of this package.
Tests to confirm this feature should be:
Golden Path Tests
Error-Handling Tests
The text was updated successfully, but these errors were encountered: