Daylight v4.9
Release Date: 1 February 2008

Name

dt_ispublic - test if a database is public

Generic Prototype

dt_ispublic(dt_Handle, dt_String) => dt_Boolean

C Prototype

#include "dt_thor.h"

dt_Boolean dt_ispublic(dt_Handle server, dt_Integer dblen, dt_String dbname)

FORTRAN Prototype

include 'dt_f_thor.inc'

logical dt_f_ispublic(server, dbname)

integer*4 server
character*() dbname

Description

Tests to see if the database is public. A database is public if it has an empty read-permission password so that it can be opened without a password.

Return Value

Returns TRUE if the database is public, FALSE otherwise. For all other object types, this property is defined as FALSE.

Related Topics

dt_database(3) dt_getdatabases(3) dt_getpasswords(3) dt_getsearchpath(3) dt_getusers(3) dt_isopen(3) dt_open(3) dt_server(3) dt_setpassword(3) dt_setsearchpath(3)