SQLiteTypes Class Reference

Inherits CreoleTypes.

List of all members.

Static Public Member Functions


Member Function Documentation

int SQLiteTypes::getType ( $nativeType ) [static, virtual]

 

This method returns the generic Creole (JDBC-like) type when given the native db type. If no match is found then we just return CreoleTypes::TEXT because SQLite is typeless.
Parameters
string $nativeType DB native type (e.g. 'TEXT', 'byetea', etc.).

Returns int Creole native type (e.g. CreoleTypes::LONGVARCHAR, CreoleTypes::BINARY, etc.).

Implements CreoleTypes.

string SQLiteTypes::getNativeType ( $creoleType ) [static, virtual]

 

This method will return a native type that corresponds to the specified Creole (JDBC-like) type. Remember that this is really only for "hint" purposes as SQLite is typeless.

If there is more than one matching native type, then the LAST defined native type will be returned.

Parameters
int $creoleType

Returns string Native type string.

Implements CreoleTypes.


This file is part of the Creole[php5] library.


Copyright © 2004 Hans Lellelid  
Creole[php5] CVS