PersistentTable
Has
query a PersistentTable connection for the existence of a row
Calling Sequence
Parameters
Description
Thread Safety
Examples
Compatibility
Has(connection, keys)
connection
-
PersistentTable object created with the Open command
keys
expression sequence of values for the key columns
The Has command returns true if the given connection contains a row with the given values in the primary key columns, and false otherwise.
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.
with⁡PersistentTable
Close,Count,Get,GetAll,GetKeys,Has,MaybeGet,Open,RawCommand,Set
connection≔Open⁡:memory:,style=k1::anything,k2::integer,v::anything,primarykey=2
connection≔<< 3-column persistent table at :memory: >>
connectionx,3≔y2
connectionz,5≔y3
Has⁡connection,x,3
true
Has⁡connection,a,4
false
Close⁡connection
The PersistentTable[Has] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
See Also
PersistentTable[Open]
Download Help Document