Difference between revisions of "COMPILE DATABASE"

From Lianjapedia
Jump to: navigation, search
(See Also)
 
(6 intermediate revisions by 3 users not shown)
Line 6: Line 6:
  
 
==See Also==
 
==See Also==
[[ADATABASES()]], [[ADD TABLE]], [[ALTER INDEX]], [[ALTER TABLE]], [[BACKUP DATABASE]], [[CLOSE DATABASES]], [[CLOSE TABLES]], [[COPY DATABASE]], [[CREATE DATABASE]], [[CREATE TABLE]], [[CREATE INDEX]], [[CREATE VIEW]], [[DB_DATADIR]], [[DBUSED()]], [[DISPLAY DATABASE]], [[DISPLAY INDEXES]], [[DISPLAY SCHEMAS]], [[DISPLAY TABLES]], [[DROP DATABASE]], [[DROP INDEX]], [[DROP TABLE]], [[GETENV()]], [[LIST DATABASE]], [[LIST INDEXES]], [[LIST SCHEMAS]], [[LIST TABLES]], [[OPEN DATABASE]], [[RESTORE DATABASE]], [[SET AUTOCATALOG]], [[SET EXCLUSIVE]], [[SQL USE|USE]]
+
[[ADATABASES()]], [[ADD TABLE]], [[ALTER INDEX]], [[ALTER TABLE]], [[CLOSE DATABASES]], [[CLOSE TABLES]], [[COPY DATABASE]], [[CREATE DATABASE]], [[CREATE TABLE]], [[CREATE INDEX]], [[CREATE VIEW]], [[DBUSED()]], [[DISPLAY DATABASE]], [[DISPLAY INDEXES]], [[DISPLAY SCHEMAS]], [[DISPLAY TABLES]], [[DROP DATABASE]], [[DROP INDEX]], [[DROP TABLE]], [[GETENV()]], [[LIST DATABASE]], [[LIST INDEXES]], [[LIST SCHEMAS]], [[LIST TABLES]], [[OPEN DATABASE]], [[SET AUTOCATALOG]], [[SET EXCLUSIVE]], [[SQL USE|USE]], [[REINDEX DATABASE]], [[REBUILD DATABASE]], [[PACK DATABASE]]
  
 
==Description==
 
==Description==
 
The COMPILE DATABASE command compiles all the stored procedure files or program source files in the specified database or databases.  The name of the target database is specified in <database name>.  Multiple databases can be specified using the skeleton and wild card characters.  The database or databases need not be open when the COMPILE DATABASE command is issued.
 
The COMPILE DATABASE command compiles all the stored procedure files or program source files in the specified database or databases.  The name of the target database is specified in <database name>.  Multiple databases can be specified using the skeleton and wild card characters.  The database or databases need not be open when the COMPILE DATABASE command is issued.
 
Databases in Recital are implemented as directories containing files that correspond to the tables and associated files in the database.  Operating System file protection can be applied individually to the files for added security.  The directories are sub-directories of the Recital data directory.  The environment variable DB_DATADIR points to the current Recital data directory and can be queried using the GETENV() function.  Files from other directories can be added to the database using the ADD TABLE command or via the database catalog and SET AUTOCATALOG functionality.
 
  
 
==Example==
 
==Example==
 
<code lang="recital">
 
<code lang="recital">
 
compile database southwind
 
compile database southwind
compile database mirage_*;
 
 
</code>
 
</code>
  
Line 24: Line 21:
 
[[Category:SQL]]
 
[[Category:SQL]]
 
[[Category:Databases]]
 
[[Category:Databases]]
[[Category:Databases Commands]]
+
[[Category:Lianja VFP Extensions]]
 +
[[Category:VFP Command Extensions]]

Latest revision as of 11:33, 26 December 2020

Purpose

Compile stored procedure files in the specified database or databases

Syntax

COMPILE DATABASE <database name> | <skeleton>

See Also

ADATABASES(), ADD TABLE, ALTER INDEX, ALTER TABLE, CLOSE DATABASES, CLOSE TABLES, COPY DATABASE, CREATE DATABASE, CREATE TABLE, CREATE INDEX, CREATE VIEW, DBUSED(), DISPLAY DATABASE, DISPLAY INDEXES, DISPLAY SCHEMAS, DISPLAY TABLES, DROP DATABASE, DROP INDEX, DROP TABLE, GETENV(), LIST DATABASE, LIST INDEXES, LIST SCHEMAS, LIST TABLES, OPEN DATABASE, SET AUTOCATALOG, SET EXCLUSIVE, USE, REINDEX DATABASE, REBUILD DATABASE, PACK DATABASE

Description

The COMPILE DATABASE command compiles all the stored procedure files or program source files in the specified database or databases. The name of the target database is specified in <database name>. Multiple databases can be specified using the skeleton and wild card characters. The database or databases need not be open when the COMPILE DATABASE command is issued.

Example

compile database southwind