-
Notifications
You must be signed in to change notification settings - Fork 3
/
PostgreSql.cfc
36 lines (28 loc) · 993 Bytes
/
PostgreSql.cfc
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
<cfcomponent extends="types.Driver" implements="types.IDatasource">
<cfset this.dsn="{connString}">
<cfset this.className="{class-name}">
<cfset this.type.port=this.TYPE_FREE>
<cfset this.value.host="localhost">
<cfset this.value.port=5432>
<cfset fields=array()>
<cffunction name="getName" returntype="string" output="no"
hint="returns display name of the driver">
<cfreturn "{label}">
</cffunction>
<cffunction name="getDescription" returntype="string" output="no"
hint="returns description for the driver">
<cfreturn "{description}">
</cffunction>
<cffunction name="getFields" returntype="array" output="no"
hint="returns array of fields">
<cfreturn fields>
</cffunction>
<cffunction name="getUsername" returntype="string" output="no"
hint="return Username">
<cfreturn data.username>
</cffunction>
<cffunction name="getPassword" returntype="string" output="no"
hint="return Password">
<cfreturn data.password>
</cffunction>
</cfcomponent>