Home    Back    Forward    Refresh    txtSQL Homepage

isLocked
Purpose: To check whether a database is locked or not
txtSQL >= 2.2.0 Beta
bool isLocked ( $database )

This function will return TRUE if $database has a file lock on it, and false otherwise. A file lock is basically a file created that tells txtSQL that it is locked.


Example 11: isLocked() Copy to clipboard
<?php
if ( $sql->isLocked('testDB') )
{
    print
'testDB is locked';
}
else
{
    print
'testDB is NOT locked';
}
?>


User Comments - isLocked
No comments posted yet;
Last Page Next Page

'Language Reference'

User Functions

Database Functions
  • showdbs
  • createdb
  • dropdb
  • renamedb
  • isLocked
  • lockdb
  • unlockdb
  • selectdb
  • db_exists

    Data Manipulation Functions

    Table Functions

    Error Handling Functions

    SQL Syntax

  • [ txtSQL Documentation powered by txtSQL | 6 SQL Queries ]