.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.


usage: .session [new | session id]

Without arguments, the command will list the current sessions.


-- creates a new session
.session new

-- list the sessions

-- switch to the new session
.session 1