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

Class: MDB2_Driver_mssql

Source Location: /MDB2_Driver_mssql-1.0.0/MDB2/Driver/mssql.php

Class Overview

MDB2_Driver_Common
   |
   --MDB2_Driver_mssql

MDB2 MSSQL Server driver


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 56]
MDB2 MSSQL Server driver


[ Top ]


Class Variables

$escape_quotes =  "'"

[line 59]


Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 67]

MDB2_Driver_mssql __construct( )

Constructor

[ Top ]

beginTransaction   [line 177]

mixed beginTransaction( )

Start a transaction.
  • Return: MDB2_OK on success, a MDB2 error on failure
  • Access: public

[ Top ]

commit   [line 205]

mixed commit( )

Commit the database changes done during a transaction that is in progress.
  • Return: MDB2_OK on success, a MDB2 error on failure
  • Access: public

[ Top ]

connect   [line 253]

true connect( )

Connect to the database
  • Return: on success, MDB2 Error Object on failure

[ Top ]

disconnect   [line 310]

mixed disconnect( [ $force = true])

Log out and disconnect from the database.
  • Return: true on success, false if not connected and error object on error
  • Access: public

Parameters:

   $force   — 

[ Top ]

errorInfo   [line 102]

array errorInfo( [integer $error = null])

This method is used to collect information about an error
  • Access: public

Parameters:

integer   $error   — 

[ Top ]

lastInsertID   [line 505]

mixed lastInsertID( [string $table = null], [ $field = null], mixed $id)

returns the autoincrement ID if supported or $id
  • Return: MDB2 Error Object or id
  • Access: public

Parameters:

mixed   $id   —  value as returned by getBeforeId()
string   $table   —  name of the table into which a new row was inserted
   $field   — 

[ Top ]

nextID   [line 455]

mixed nextID( string $seq_name, [boolean $ondemand = true])

returns the next free id of a sequence
  • Return: MDB2 Error Object or id
  • Access: public

Parameters:

string   $seq_name   —  name of the sequence
boolean   $ondemand   —  when true the seqence is automatic created, if it not exists

[ Top ]

quoteIdentifier   [line 160]

string quoteIdentifier( string $str, [bool $check_option = false])

Quote a string so it can be safely used as a table / column name

Quoting style depends on which database driver is being used.

  • Return: quoted identifier string
  • Access: public

Parameters:

string   $str   —  identifier name to be quoted
bool   $check_option   —  check the 'quote_identifier' option

[ Top ]

rollback   [line 230]

mixed rollback( )

Cancel any database changes done during a transaction that is in progress.
  • Return: MDB2_OK on success, a MDB2 error on failure
  • Access: public

[ Top ]

_doQuery   [line 337]

result _doQuery( string $query, [boolean $is_manip = false], [resource $connection = null], [string $database_name = null])

Execute a query
  • Return: or error object
  • Access: protected

Parameters:

string   $query   —  query
boolean   $is_manip   —  if the query is a manipulation query
resource   $connection   — 
string   $database_name   — 

[ Top ]

_modifyQuery   [line 407]

the _modifyQuery( string $query, $is_manip, $limit, $offset)

Changes a query string for various DBMS specific reasons
  • Return: new (modified) query
  • Access: protected

Parameters:

string   $query   —  query to modify
   $is_manip   — 
   $limit   — 
   $offset   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:36:30 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.