MDB2
[ class tree: MDB2 ] [ index: MDB2 ] [ all elements ]

Class: MDB2_Driver_Datatype_fbsql

Source Location: /MDB2_Driver_fbsql-0.3.0/MDB2/Driver/Datatype/fbsql.php

Class Overview

MDB2_Driver_Datatype_Common
   |
   --MDB2_Driver_Datatype_fbsql

MDB2 FrontbaseSQL driver


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 58]
MDB2 FrontbaseSQL driver


[ Top ]


Method Detail

getTypeDeclaration   [line 115]

string getTypeDeclaration( array $field)

Obtain DBMS specific SQL code portion needed to declare an text type field to be used in statements like CREATE TABLE.
  • Return: DBMS specific SQL code portion that should be used to declare the specified field.
  • Access: public

Parameters:

array   $field   — 

associative array with the name of the properties of the field being declared as array indexes. Currently, the types of supported field properties are as follows:

length Integer value that determines the maximum length of the text field. If this argument is missing the field should be declared to have the longest length allowed by the DBMS.

default Text value to be used as default for this field.

notnull Boolean flag that indicates whether this field is constrained to not be set to null.


[ Top ]

_baseConvertResult   [line 71]

object a _baseConvertResult( mixed $value, string $type, [string $rtrim = true])

general type conversion method
  • Return: MDB2 error on failure
  • Access: protected

Parameters:

mixed   $value   —  refernce to a value to be converted
string   $type   —  specifies which type to convert to
string   $rtrim   —  if text should be rtrimmed

[ Top ]

_mapNativeDatatype   [line 238]

array _mapNativeDatatype( array $field)

Maps a native array description of a field to a MDB2 datatype and length
  • Return: containing the various possible types, length, sign, fixed
  • Access: public

Parameters:

array   $field   —  native field description

[ Top ]

_quoteBoolean   [line 166]

string _quoteBoolean( string $value, bool $quote, bool $escape_wildcards)

Convert a text value into a DBMS specific format that is suitable to compose query statements.
  • Return: text string that represents the given argument value in a DBMS specific format.
  • Access: protected

Parameters:

string   $value   —  text string value that is intended to be converted.
bool   $quote   —  determines if the value should be quoted and escaped
bool   $escape_wildcards   —  if to escape escape wildcards

[ Top ]

_quoteDate   [line 185]

string _quoteDate( string $value, bool $quote, bool $escape_wildcards)

Convert a text value into a DBMS specific format that is suitable to compose query statements.
  • Return: text string that represents the given argument value in a DBMS specific format.
  • Access: protected

Parameters:

string   $value   —  text string value that is intended to be converted.
bool   $quote   —  determines if the value should be quoted and escaped
bool   $escape_wildcards   —  if to escape escape wildcards

[ Top ]

_quoteTime   [line 223]

string _quoteTime( string $value, bool $quote, bool $escape_wildcards)

Convert a text value into a DBMS specific format that is suitable to compose query statements.
  • Return: text string that represents the given argument value in a DBMS specific format.
  • Access: protected

Parameters:

string   $value   —  text string value that is intended to be converted.
bool   $quote   —  determines if the value should be quoted and escaped
bool   $escape_wildcards   —  if to escape escape wildcards

[ Top ]

_quoteTimestamp   [line 204]

string _quoteTimestamp( string $value, bool $quote, bool $escape_wildcards)

Convert a text value into a DBMS specific format that is suitable to compose query statements.
  • Return: text string that represents the given argument value in a DBMS specific format.
  • Access: protected

Parameters:

string   $value   —  text string value that is intended to be converted.
bool   $quote   —  determines if the value should be quoted and escaped
bool   $escape_wildcards   —  if to escape escape wildcards

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:51:07 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.