#include "../config.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "buf.h"
#include "guiapi.h"
#include "queries.h"
#include "luaif.h"
#include "workspace.h"
Include dependency graph for workspace.c:
Go to the source code of this file.
Defines | |
#define | CR_CHAR '\\' |
Character to map CR's in the SQL to. | |
Functions | |
void | map_chars (char *sql, char c1, char c2) |
Replace all of the 'c1' chars in txt to 'c2'. | |
void | ws_load_file (char *fn) |
Load a workspace from a file. | |
int | ws_save_file (char *fn) |
Save the workspace to a file. |
Definition in file workspace.c.
|
Load a workspace from a file. Sets up the workspace variable, and loads the queries, but does NOT disconnect the old database.
Definition at line 70 of file workspace.c. References luaif_runfile(). Referenced by gui_get_workspace(). |
|
Save the workspace to a file.
Definition at line 84 of file workspace.c. References _a_buf::b_dat, buf_free(), buf_new(), buf_strcat(), buf_strcpy(), cfg_get_default_wsname(), gui_connection_ok(), gui_get_connection_url(), map_chars(), and query_get_text_no(). |