PartialConnection

Extends BaseConnection

Secondary class for failed connections

When trying to connect to a database and an invalid path is inputted, or if the Disconnect() method was called on a connection class, this class will be returned. When connections are disconnected and this class is returned, you are safe to quit the program.

Properties

.Path

Always a nill value when using this class.
Type - Null

.State

The current state of this connection. When using this class, it will always be 'PARTIAL' unless you reconnected successfully.
Type - String

.Cache

A Cache Collection with information about this partially connected class.
Type - Cache

Methods

Refer to functions for the database connection methods for interacting with data.

.Reconnect(PathURL)

Reconnects to a different file and state under this class instance.

Parameter Type Description
PathURL String The URL to the new database file.

Returns - Connection | This
Returns the new connection or the same class if the path is invalid.

.Resume(PathURL, Options?)

Tries to reconnect to a database.

Parameter Type Description
PathURL String The URL to the new database file.
Options valOptions Options for the new connection.

Returns - Connection | This
Returns the new connection or the same class if the path is invalid.