swat.CAS.copy

CAS.copy()

Create a copy of the connection

The copy of the connection will use the same parameters as self, but it will create a new session.

Returns:
CAS object

See also

fork()

Examples

>>> conn = swat.CAS()
>>> print(conn)
CAS(..., session='76dd2bbe-de65-554f-a94f-a5e0e1abfdc8')
>>> conn2 = conn.copy()
>>> print(conn2)
CAS(..., session='19cef586-6997-ae40-b62c-036f44cb60fc')