qofsql.c File Reference


Detailed Description

QOF client-side SQL parser - interfaces with libgda.

Author:
Copyright (C) 2004 Linas Vepstas <linas@linas.org>

Definition in file qofsql.c.

#include <stdlib.h>
#include <errno.h>
#include "glib.h"
#include "config.h"
#include "sql_parser.h"
#include <time.h>
#include "kvp_frame.h"
#include "gnc-date.h"
#include "gnc-numeric.h"
#include "gnc-trace.h"
#include "guid.h"
#include "qofbook.h"
#include "qofquery.h"
#include "qofquerycore.h"
#include "qofsql.h"
#include "gnc-engine-util.h"
#include "qofinstance-p.h"
#include "qofobject.h"

Go to the source code of this file.

Data Structures

struct  _QofSqlQuery

Defines

#define _GNU_SOURCE

Functions

QofSqlQueryqof_sql_query_new (void)
void qof_sql_query_destroy (QofSqlQuery *q)
QofQueryqof_sql_query_get_query (QofSqlQuery *q)
void qof_sql_query_set_book (QofSqlQuery *q, QofBook *book)
void qof_sql_query_set_kvp (QofSqlQuery *q, KvpFrame *kvp)
static void get_table_and_param (char *str, char **tab, char **param)
static char * dequote_string (char *str)
static QofQueryhandle_single_condition (QofSqlQuery *query, sql_condition *cond)
static QofQueryhandle_where (QofSqlQuery *query, sql_where *swear)
static void handle_sort_order (QofSqlQuery *query, GList *sorder_list)
static void qof_queryForeachParam (QofParam *param, gpointer user_data)
static const char * qof_sql_get_value (sql_insert_statement *insert)
static const QofParamqof_sql_get_param (QofIdTypeConst type, sql_insert_statement *insert)
static void qof_sql_insertCB (gpointer value, gpointer data)
static QofEntityqof_query_insert (QofSqlQuery *query)
static const char * sql_type_as_string (sql_statement_type type)
void qof_sql_query_parse (QofSqlQuery *query, const char *str)
GList * qof_sql_query_run (QofSqlQuery *query, const char *str)
 Perform the query, return the results.
GList * qof_sql_query_rerun (QofSqlQuery *query)

Variables

static QofLogModule log_module = QOF_MOD_QUERY


Generated on Fri Oct 21 15:49:57 2005 for QOF by  doxygen 1.4.5