.session

.session creates a new session or switches to a session.

In Jaqy, each session can only have one active database connection. Thus, it is necessary to have multiple sessions to open multiple database connections.

The primary purpose of having multiple sessions is to support direct data transfer between two database servers using pipe export / import.

Syntax

usage: .session [new | session id]

Without arguments, the command will list the current sessions.

Example

-- creates a new session
.session new

-- list the sessions
.session

-- switch to the new session
.session 1