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

Online Help

All Products    Maple    MapleSim


DataInterfaceStream

  

Type

  

get the Type of a DataInterfaceStream module

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

stream:-Type( )

Parameters

stream

-

DataInterfaceStream module

Description

• 

Type returns the SQL type that this DataInterfaceStream module represents.

• 

DataInterfaceStream modules can only represent objects of type BINARY, VARBINARY, LONGVARBINARY, CHAR, VARCHAR, and LONGVARCHAR.

Examples

> 

driver≔DatabaseLoadDriver⁡:

> 

conn≔driver:-OpenConnection⁡url,name,pass:res≔conn:-ExecuteQuery⁡SELECT * FROM stream:res:-Next⁡

true

(1)
> 

res:-GetData⁡1

the quick brown fox jumped over the lazy dog

(2)
> 

res:-GetData⁡2

[   1..127 1-D Array    ]

[ Data Type: integer[1] ]

[ Storage: rectangular  ]

[    Order: C_order     ]

> 

str≔res:-GetData⁡1,stream=true:str:-Type⁡

VARCHAR

(3)
> 

str≔res:-GetData⁡2,stream=true:str:-Type⁡

BINARY

(4)

See Also

Database

Database[DataInterfaceStream]

Database[DataInterfaceStream][Get]

Database[usage]