File: 002-mod_log_sql.h.dpatch

package info (click to toggle)
libapache-mod-log-sql 1.100-14
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 932 kB
  • ctags: 365
  • sloc: sh: 2,861; ansic: 2,189; xml: 2,010; makefile: 371; perl: 250; sql: 47
file content (29 lines) | stat: -rw-r--r-- 1,099 bytes parent folder | download
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
29
#!/bin/sh /usr/share/dpatch/dpatch-run
## 002-mod_log_sql.h.dpatch by Thomas Goirand <thomas@goirand.fr>
##
## DP: This patch adds a scoreboard feature to mod_log_sql, so you
## DP: can keep tracks of number of hits and bytes for each of the
## DP: hosted websites.

@DPATCH@
--- libapache-mod-log-sql/mod_log_sql.h.orig	2007-08-06 00:03:47.000000000 +0800
+++ libapache-mod-log-sql/mod_log_sql.h	2007-08-06 00:52:49.000000000 +0800
@@ -67,7 +67,8 @@
 	LOGSQL_TABLE_NOTES,
 	LOGSQL_TABLE_HEADERSOUT,
 	LOGSQL_TABLE_HEADERSIN,
-	LOGSQL_TABLE_COOKIES
+	LOGSQL_TABLE_COOKIES,
+	LOGSQL_TABLE_SCORE
 } logsql_tabletype;
 
 /* All Tables */
@@ -96,6 +97,8 @@
 	/* create a SQL table named table_name of table_type */
 	logsql_table_ret (*create_table)(request_rec *r, logsql_dbconnection *db,
 		logsql_tabletype table_type, const char *table_name);
+        /* enclose an insert query with parameters to make it an insert ignore */
+        const char * (*enclose_insert_ignore)(const char* insert_query,request_rec *r);
 } logsql_dbdriver;
 
 LOGSQL_DECLARE(void) log_sql_register_driver(apr_pool_t *p,