dbIsDriverAvailable#
Purpose#
Returns 1 if a specified database driver is available.
Format#
- ret = dbIsDriverAvailable(name)#
- Parameters:
name (string) – name of driver to check
- Returns:
ret (scalar) – 1 if the specified driver is available, or 0 if not.
Examples#
// Check if the MySQL driver is available
ret = dbIsDriverAvailable("MYSQL");
if ret;
print "MySQL driver is available";
else;
print "MySQL driver is not available";
endif;