Close - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


PersistentTable

  

Close

  

close a PersistentTable connection

 

Calling Sequence

Parameters

Description

Thread Safety

Examples

Compatibility

Calling Sequence

Close(connection)

Parameters

connection

-

PersistentTable object created with the Open command

Description

• 

The Close command disconnects a PersistentTable object from its connected database file and releases the associated resources.

Thread Safety

• 

Persistent tables are in general thread safe as of Maple 2021; see the Thread Safety section of the PersistentTable overview page for more details and caveats.

• 

For more information on thread safety, see index/threadsafe.

Examples

> 

with⁡PersistentTable

Close,Count,Get,GetAll,GetKeys,Has,MaybeGet,Open,RawCommand,Set

(1)
> 

connection≔Open⁡:memory:,style=k::integer,v::anything

connection≔<< 2-column persistent table at :memory: >>

(2)
> 

connection1≔x+1

connection1≔x+1

(3)
> 

connection25≔test

connection25≔test

(4)
> 

Close⁡connection

Compatibility

• 

The PersistentTable[Close] command was introduced in Maple 2021.

• 

For more information on Maple 2021 changes, see Updates in Maple 2021.

See Also

PersistentTable

PersistentTable[Open]