summaryrefslogtreecommitdiff
path: root/classes/database/BaseDB.php
blob: d4fe75799141aa4bfef48348cdf3b00a4613d7ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php

/**
 * A class that implements the DB interface for Postgres
 * Note: This class uses ADODB and returns RecordSets.
 *
 * $Id: BaseDB.php,v 1.1.1.1 2002/02/11 09:32:47 chriskl Exp $
 */

include_once('../classes/database/ADODB_base.php');

class BaseDB extends ADODB_base {

	// Filter objects for user?
	var $_filterTables = true;

	function BaseDB($type) {
		$this->ADODB_base($type);
	}

	/**
	 * Set object filtering for user
	 * @param $state (boolean)
	 */
	function setFilterTables($state) {
		$this->$_filterTables = $state;
	}

/*
	// Feature functions

	// Is "ALTER TABLE" with add column supported? 
	function supportsAlterTableWithAddColumn() {}
	
	// Is "ALTER TABLE" with drop column supported? 
	function supportsAlterTableWithDropColumn() 

	// Are both data definition and data manipulation statements within a transaction supported? 
	function supportsDataDefinitionAndDataManipulationTransactions() 

	// Are only data manipulation statements within a transaction supported? 
	function supportsDataManipulationTransactionsOnly() 

	// Does the database treat mixed case unquoted SQL identifiers as case sensitive and as a result store them in mixed case? A JDBC CompliantTM driver will always return false. 
	function supportsMixedCaseIdentifiers() 

	// Does the database treat mixed case quoted SQL identifiers as case sensitive and as a result store them in mixed case? A JDBC CompliantTM driver will always return true. 
	function supportsMixedCaseQuotedIdentifiers() 

	// Can columns be defined as non-nullable? A JDBC CompliantTM driver always returns true. 
	function supportsNonNullableColumns() 

	// Are stored procedure calls using the stored procedure escape syntax supported? 
	function supportsStoredProcedures() 
	
	// Are transactions supported? If not, invoking the method commit is a noop and the isolation level is TRANSACTION_NONE. 
	function supportsTransactions() 

	// Can you define your own aggregates?
	function supportsAggregates()

	// Can you define your own operators?
	function supportsOperators()

	// Database manipulation

*/
}

?>