Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
3 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/***********************************************************************************************************************************
Common Command Routines
***********************************************************************************************************************************/
#ifndef COMMAND_COMMAND_H
#define COMMAND_COMMAND_H
 
#include "common/type/stringList.h"
 
/***********************************************************************************************************************************
Functions
***********************************************************************************************************************************/
// Capture time at the very start of main so total time is more accurate
FN_EXTERN void cmdInit(void);
 
// Begin the command
FN_EXTERN void cmdBegin(void);
 
// Get the command options as a string. This is output in cmdBegin() if the log level is high enough but can also be used for
// debugging or error reporting later on.
FN_EXTERN const String *cmdOption(void);
 
// End the command
FN_EXTERN void cmdEnd(const String *errorMessage);
 
// Execute an async process. This function will only return in the calling process and the implementation is platform dependent.
FN_EXTERN void cmdAsyncExec(const char *command, const StringList *commandExec);
 
#endif