Browse code

modules_s/db_ops: renamed to db2_ops

- it implements only SRDBv2 API

Daniel-Constantin Mierla authored on 18/12/2012 22:23:38
Showing 5 changed files
1 1
similarity index 94%
2 2
rename from modules_s/db_ops/Makefile
3 3
rename to modules_s/db2_ops/Makefile
... ...
@@ -8,7 +8,7 @@
8 8
 include ../../Makefile.defs
9 9
 
10 10
 auto_gen=
11
-NAME=db_ops.so
11
+NAME=db2_ops.so
12 12
 LIBS=
13 13
 
14 14
 
15 15
similarity index 96%
16 16
rename from modules_s/db_ops/README
17 17
rename to modules_s/db2_ops/README
... ...
@@ -1,10 +1,10 @@
1
-1. db_ops module
1
+1. db2_ops module
2 2
 
3 3
 Tomas Mandys
4 4
 
5 5
    Iptel.org
6 6
 
7
-   Copyright © 2007 Tomas Mandys
7
+   Copyright � 2007 Tomas Mandys
8 8
      __________________________________________________________________
9 9
 
10 10
    1.1. Overview
... ...
@@ -123,7 +123,7 @@ tra_ops ]
123 123
 
124 124
 1.5. Functions
125 125
 
126
-1.5.1.  db_query(query | query_id [,handle] )
126
+1.5.1. db_query(query | query_id [,handle] )
127 127
 
128 128
    Executes query and in case of SELECT returns result via handle, seeks
129 129
    the first record and returns TRUE if table is not empty. The result is
... ...
@@ -142,7 +142,7 @@ tra_ops ]
142 142
 
143 143
         }
144 144
 
145
-1.5.2.  db_close(handle)
145
+1.5.2. db_close(handle)
146 146
 
147 147
    Close table that has been opened using db_query. Note all close after
148 148
    script processing automatically.
... ...
@@ -152,7 +152,7 @@ tra_ops ]
152 152
         db_close(my_handle);
153 153
         ...
154 154
 
155
-1.5.3.  db_first(handle)
155
+1.5.3. db_first(handle)
156 156
 
157 157
    Returns TRUE if table is not empty. Note that rewind might not be
158 158
    supported by particular db driver.
... ...
@@ -164,7 +164,7 @@ tra_ops ]
164 164
         }
165 165
         ...
166 166
 
167
-1.5.4.  db_next(handle)
167
+1.5.4. db_next(handle)
168 168
 
169 169
    Moves to the next record and returns TRUE if not EOF.
170 170
 
... ...
@@ -175,7 +175,7 @@ tra_ops ]
175 175
         }
176 176
         ...
177 177
 
178
-1.5.5.  db_seek(handle, row_no)
178
+1.5.5. db_seek(handle, row_no)
179 179
 
180 180
    Seeks at the row no (origin is zero) and Returns TRUE in case of
181 181
    success. Backward seek might not be supported by db driver.
... ...
@@ -187,7 +187,7 @@ tra_ops ]
187 187
         }
188 188
         ...
189 189
 
190
-1.5.6.  db_foreach(handle, route)
190
+1.5.6. db_foreach(handle, route)
191 191
 
192 192
    Call specific route for each row, loop is interrupted if route returns
193 193
    code <= 0. Return code of the last route call is returned as result of
... ...
@@ -204,7 +204,7 @@ tra_ops ]
204 204
         }
205 205
         ...
206 206
 
207
-1.5.7.  db_proper()
207
+1.5.7. db_proper()
208 208
 
209 209
    Hack which enables using db_ops queries in failure route. Call it at
210 210
    the beginning of failure_route block.
... ...
@@ -216,7 +216,7 @@ tra_ops ]
216 216
         ....
217 217
         }
218 218
 
219
-1.5.8.  @db.query.query_id
219
+1.5.8. @db.query.query_id
220 220
 
221 221
    Returns value of the first row and the first field.
222 222
 
... ...
@@ -225,7 +225,7 @@ tra_ops ]
225 225
         ....
226 226
         }
227 227
 
228
-1.5.9.  @db.query.query_id.count
228
+1.5.9. @db.query.query_id.count
229 229
 
230 230
    Returns number of rows in select query.
231 231
 
... ...
@@ -234,7 +234,7 @@ tra_ops ]
234 234
         ....
235 235
         }
236 236
 
237
-1.5.10.  @db.query.query_id.is_empty
237
+1.5.10. @db.query.query_id.is_empty
238 238
 
239 239
    Returns 1 if select query is empty.
240 240
 
... ...
@@ -243,7 +243,7 @@ tra_ops ]
243 243
                 # query is empty
244 244
         }
245 245
 
246
-1.5.11.  @db.query.query_id.field[m]
246
+1.5.11. @db.query.query_id.field[m]
247 247
 
248 248
    Returns value of the first row and the m-th field. @*.field supports
249 249
    select_any_uri and select_any_nameaddr.
... ...
@@ -253,7 +253,7 @@ tra_ops ]
253 253
                 ...
254 254
         }
255 255
 
256
-1.5.12.  @db.query.query_id.row[n]
256
+1.5.12. @db.query.query_id.row[n]
257 257
 
258 258
    Returns value of the n-th row and the first field, negative values
259 259
    count from the end (-1 == last row).
... ...
@@ -263,7 +263,7 @@ tra_ops ]
263 263
                 ...
264 264
         }
265 265
 
266
-1.5.13.  @db.query.query_id.row[n].field[m]
266
+1.5.13. @db.query.query_id.row[n].field[m]
267 267
 
268 268
    Returns value of the n-th row and the m-th field. @*.field supports
269 269
    select_any_uri and select_any_nameaddr.
... ...
@@ -273,7 +273,7 @@ tra_ops ]
273 273
                 ...
274 274
         }
275 275
 
276
-1.5.14.  @db.fetch.handle
276
+1.5.14. @db.fetch.handle
277 277
 
278 278
    Similar functionality as @db.query selects with exception that
279 279
    operation is performed at query has been opened by db_query.
... ...
@@ -292,7 +292,7 @@ tra_ops ]
292 292
         }
293 293
         db_close(my_handle);
294 294
 
295
-1.5.15.  @db.fetch.handle.row_no
295
+1.5.15. @db.fetch.handle.row_no
296 296
 
297 297
    Returns current row number (origin is zero).
298 298
 
299 299
similarity index 99%
300 300
rename from modules_s/db_ops/db_ops.c
301 301
rename to modules_s/db2_ops/db2_ops.c
... ...
@@ -47,7 +47,7 @@
47 47
 
48 48
 MODULE_VERSION
49 49
 
50
-#define MODULE_NAME "db_ops"
50
+#define MODULE_NAME "db2_ops"
51 51
 #define MODULE_NAME2 "db"
52 52
 
53 53
 static char* db_url = DEFAULT_DB_URL;
54 54
similarity index 78%
55 55
rename from modules_s/db_ops/doc/Makefile
56 56
rename to modules_s/db2_ops/doc/Makefile
... ...
@@ -1,4 +1,4 @@
1
-docs = db_ops.xml
1
+docs = db2_ops.xml
2 2
 
3 3
 docbook_dir=../../../docbook
4 4
 include $(docbook_dir)/Makefile.module
5 5
similarity index 99%
6 6
rename from modules_s/db_ops/doc/db_ops.xml
7 7
rename to modules_s/db2_ops/doc/db2_ops.xml
... ...
@@ -2,7 +2,7 @@
2 2
 <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 
3 3
    "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
4 4
 
5
-<section id="db_ops" xmlns:xi="http://www.w3.org/2001/XInclude">
5
+<section id="db2_ops" xmlns:xi="http://www.w3.org/2001/XInclude">
6 6
     <sectioninfo>
7 7
 	<authorgroup>
8 8
 	    <author>
... ...
@@ -21,7 +21,7 @@
21 21
 
22 22
     </sectioninfo>
23 23
 
24
-    <title>db_ops module</title>
24
+    <title>db2_ops module</title>
25 25
 
26 26
     <section id="db_ops.overview">
27 27
 		<title>Overview</title>