php8.5
Home/ Manual/ reference / pdo_cubrid/ PDO::CUBRID attribute flags

PDO::CUBRID attribute flags

The following constants can be used when setting the database attribute. They can be passed to PDO::getAttribute or PDO::setAttribute. PDO::CUBRID attribute flagsConstantDescriptionPDO::CUBRID_ATTR_ISOLATION_LEVELTransaction isolation level for the database connection.PDO::CUBRID_ATTR_LOCK_TIMEOUTTransaction timeout in seconds.PDO::CUBRID_ATTR_MAX_STRING_LENGTHRead only. The maximum string length for bit, varbit, char, varchar, nchar, nchar varying data types when using CUBRID PDO API.

Predefined Constants Driver-constants

The following constants can be used when setting the database attribute. They can be passed to PDO::getAttribute() or PDO::setAttribute().

ConstantDescription
PDO::CUBRID_ATTR_ISOLATION_LEVELTransaction isolation level for the database connection.
PDO::CUBRID_ATTR_LOCK_TIMEOUTTransaction timeout in seconds.
PDO::CUBRID_ATTR_MAX_STRING_LENGTHRead only. The maximum string length for bit, varbit, char, varchar, nchar, nchar varying data types when using CUBRID PDO API.

The following constants can be used when setting the transaction isolation level. They can be passed to PDO::getAttribute() or returned by PDO::setAttribute().

ConstantDescription
PDO::TRAN_COMMIT_CLASS_UNCOMMIT_INSTANCEThe lowest isolation level (1). A dirty, non-repeatable or phantom read may occur for the tuple and a non-repeatable read may occur for the table as well.
PDO::TRAN_COMMIT_CLASS_COMMIT_INSTANCEA relatively low isolation level (2). A dirty read does not occur, but non-repeatable or phantom read may occur.
PDO::TRAN_REP_CLASS_UNCOMMIT_INSTANCEThe default isolation of CUBRID (3). A dirty, non-repeatable or phantom read may occur for the tuple, but repeatable read is ensured for the table.
PDO::TRAN_REP_CLASS_COMMIT_INSTANCEA relatively low isolation level (4). A dirty read does not occur, but non-repeatable or phantom read may.
PDO::TRAN_REP_CLASS_REP_INSTANCEA relatively high isolation level (5). A dirty or non-repeatable read does not occur, but a phantom read may.
PDO::TRAN_SERIALIZABLEThe highest isolation level (6). Problems concerning concurrency (e.g. dirty read, non-repeatable read, phantom read, etc.) do not occur.

The following constants can be used when getting schema information. They can be passed to PDO::cubrid_schema().

ConstantDescription
PDO::CUBRID_SCH_TABLEGet name and type of table in CUBRID.
PDO::CUBRID_SCH_VIEWGet name and type of view in CUBRID.
PDO::CUBRID_SCH_QUERY_SPECGet the query definition of view.
PDO::CUBRID_SCH_ATTRIBUTEGet the attributes of table column.
PDO::CUBRID_SCH_TABLE_ATTRIBUTEGet the attributes of table.
PDO::CUBRID_SCH_METHODGet the instance method. The instance method is a method called by a class instance. It is used more often than the class method because most operations are executed in the instance.
PDO::CUBRID_SCH_TABLE_METHODGet the class method. The class method is a method called by a class object. It is usually used to create a new class instance or to initialize it. It is also used to access or update class attributes.
PDO::CUBRID_SCH_METHOD_FILEGet the information of the file where the method of the table is defined.
PDO::CUBRID_SCH_SUPER_TABLEGet the name and type of table which table inherites attributes from.
PDO::CUBRID_SCH_SUB_TABLEGet the name and type of table which inherites attributes from this table.
PDO::CUBRID_SCH_CONSTRAINTGet the table constraints.
PDO::CUBRID_SCH_TRIGGERGet the table triggers.
PDO::CUBRID_SCH_TABLE_PRIVILEGEGet the privilege information of table.
PDO::CUBRID_SCH_COL_PRIVILEGEGet the privilege information of column.
PDO::CUBRID_SCH_DIRECT_SUPER_TABLEGet the direct super table of table.
PDO::CUBRID_SCH_PRIMARY_KEYGet the table primary key.
PDO::CUBRID_SCH_IMPORTED_KEYSGet imported keys of table.
PDO::CUBRID_SCH_EXPORTED_KEYSGet exported keys of table.
PDO::CUBRID_SCH_CROSS_REFERENCEGet reference relationship of two tables.

Source: reference/pdo_cubrid/constants.xml · from the official PHP manual (php/doc-en)