Lines Matching refs:FILE
12 ** This file contains code to implement the "sqlite" command line
21 ** Enable large-file support for fopen() and friends on unix.
223 ** is true. Otherwise, assume stdin is connected to a file or pipe.
256 static FILE *iotrace = 0;
329 ** This routine reads a line of text from FILE in, stores
331 ** to the text. NULL is returned at end of file, or if malloc()
337 static char *local_getline(char *zPrompt, FILE *in, int csvFlag){
386 static char *one_input_line(const char *zPrior, FILE *in){
421 FILE *out; /* Write results here */
436 const char *zDbFilename; /* name of the database file */
439 FILE *pLog; /* Write log output here */
495 static void output_hex_blob(FILE *out, const void *pBlob, int nBlob){
506 static void output_quoted_string(FILE *out, const char *z){
536 static void output_c_string(FILE *out, const char *z){
565 static void output_html_string(FILE *out, const char *z){
624 FILE *out = p->out;
1386 ".backup ?DB? FILE Backup DB (default \"main\") to FILE\n"
1398 ".import FILE TABLE Import data from FILE into TABLE\n"
1403 ".iotrace FILE Enable I/O diagnostic logging to FILE\n"
1406 ".load FILE ?ENTRY? Load an extension library\n"
1408 ".log FILE|off Turn logging on or off. FILE can be stderr/stdout\n"
1424 ".restore ?DB? FILE Restore content of DB (default \"main\") from FILE\n"
1444 static int process_input(struct callback_data *p, FILE *in);
1728 char *zFile = azArg[1]; /* The file from which to extract data */
1735 char *zLine; /* A single line of input from the file */
1738 FILE *in; /* The input file */
1739 int lineno = 0; /* Line number of input file */
2034 FILE *alt = fopen(azArg[1], "rb");
2487 ** is coming from a file or device. A prompt is issued and history
2493 static int process_input(struct callback_data *p, FILE *in){
2657 ** Read input from the file given by sqliterc_override. Or if that
2664 const char *sqliterc_override /* Name of config file. NULL to use default */
2669 FILE *in = NULL;
2713 " -init filename read/process named file\n"
2736 "if the file does not previously exist.\n", Argv0);
2785 ** the name of the database file, the name of the initialization file,
2880 /* Go ahead and open the database file if it already exists. If the
2881 ** file does not exist, delay opening it. This prevents empty database
2889 /* Process the initialization file if there is one. If no -init option
2890 ** is given on the command line, look for a file named ~/.sqliterc and
2900 ** file is processed so that the command-line arguments will override
2901 ** settings in the initialization file.