dbc/ZDbcSqLiteUtils.pas File Reference

Go to the source code of this file.

Functions

 CheckSQLiteError (IZSQLitePlainDriver PlainDriver, Integer ErrorCode, PChar ErrorMessage, TZLoggingCategory LogCategory, string LogMessage)
 Checks for possible sql errors.
TZSQLType ConvertSQLiteTypeToSQLType (string TypeName, Integer &Precision, Integer &Decimals)
 Convert string SQLite field type to SQLType.
string DecodeString (string Value)
 Converts an string from escape PostgreSQL format.
string EncodeString (string Value)
 Converts an string into escape PostgreSQL format.


Function Documentation

CheckSQLiteError ( IZSQLitePlainDriver  PlainDriver,
Integer  ErrorCode,
PChar  ErrorMessage,
TZLoggingCategory  LogCategory,
string  LogMessage 
)

Checks for possible sql errors.

Parameters:
PlainDriver a SQLite plain driver.
ErrorCode an error code.
ErrorMessage an error message.
LogCategory a logging category.
LogMessage a logging message.

Definition at line 227 of file ZDbcSqLiteUtils.pas.

Referenced by TZSQLiteDriver::GetSupportedProtocols().

TZSQLType ConvertSQLiteTypeToSQLType ( string  TypeName,
Integer &  Precision,
Integer &  Decimals 
)

Convert string SQLite field type to SQLType.

Parameters:
string field type value
Precision the column precision or size
Decimals the column position after decimal point
Returns:
the SQLType field type value

Definition at line 126 of file ZDbcSqLiteUtils.pas.

References stInteger.

string DecodeString ( string  Value  ) 

Converts an string from escape PostgreSQL format.

Parameters:
Value a string in PostgreSQL escape format.
Returns:
a regular string.

string EncodeString ( string  Value  ) 

Converts an string into escape PostgreSQL format.

Parameters:
Value a regular string.
Returns:
a string in PostgreSQL escape format.


Generated on Wed Dec 30 08:42:42 2009 for zeoslib by  doxygen 1.5.7.1