Zum Hauptinhalt springen

Zymba Documentation

SQL.PostgreSQL

object @SQL.PostgreSQL(@SQL.Connection) {
construct(string $server, string $dbname, string $username, string $password) {}
disableTracing(): $this {}
enableTracing(string $path): $this {}
getHost(): string {}
getPort(): int {}
insertReturning(string $table, object $data, object $fields, bool $indexed): object {}
isConnected(): bool {}
}

PostgreSQL connection prototype.

Prototype

SQL.Connection

Methods

$this.construct(string $server, string $dbname, string $username, string $password): void
Parameters
NameTypeValueDefault
serverstring""
dbnamestring""
usernamestring""
passwordstring""
$this.disableTracing(): this
Returns
TypeValue
$this
$this.enableTracing(string $path): this
Parameters
NameTypeValueDefault
pathstring""
Returns
TypeValue
$this
$this.getHost(): string
Returns
TypeValue
string
$this.getPort(): int
Returns
TypeValue
int
$this.insertReturning(string $table, object $data, object $fields, bool $indexed): object
Parameters
NameTypeValueDefault
tablestring""
dataobject[field: value, ...][]
fieldsobject[field, ...][]
indexedboolfalse
Returns
TypeValue
object[field: value, ...]
null
$this.isConnected(): bool
Returns
TypeValue
bool