Personal tools
From wiki.swiftlytilting.com
Jump to: navigation, search

WinBinder Manual/db get info

Returns information about the database and wrapper according to the string info.

Syntax

string db_get_info(string info)

Arguments

The parameter info is case-insensitive. Possible values are:

Value of info

Meaning

Type

Example

"version"

A string with the database type, version and wrapper version

string

SQLite 2.8.11 with Database Wrapper db_v2b

"dbtype"

The type pf database ("SQLite" or "MySQL")

string

SQLite

"dbversion"

The version number of the database library

string

2.8.11

"wrapversion"

The version identifier of the database wrapper

string

dv_v2b

Result

The function returns the requested value.

Example

// Get database type and version plus wrapper version

$version = db_get_info("version");

See also


Winbinder Projects