[sr-dev] git:master: modules_s/db_ops: renamed to db2_ops

Daniel-Constantin Mierla miconda at gmail.com
Tue Dec 18 23:59:23 CET 2012


Module: sip-router
Branch: master
Commit: 3e3b0350cd5408822cb7c35aa83d1c3e305a98c1
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3e3b0350cd5408822cb7c35aa83d1c3e305a98c1

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Tue Dec 18 23:23:38 2012 +0100

modules_s/db_ops: renamed to db2_ops

- it implements only SRDBv2 API

---

 modules_s/{db_ops => db2_ops}/Makefile             |    2 +-
 modules_s/{db_ops => db2_ops}/README               |   34 ++++++++++----------
 modules_s/{db_ops/db_ops.c => db2_ops/db2_ops.c}   |    2 +-
 modules_s/{db_ops => db2_ops}/doc/Makefile         |    2 +-
 .../doc/db_ops.xml => db2_ops/doc/db2_ops.xml}     |    4 +-
 5 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/modules_s/db_ops/Makefile b/modules_s/db2_ops/Makefile
similarity index 94%
rename from modules_s/db_ops/Makefile
rename to modules_s/db2_ops/Makefile
index fbec2df..a02971b 100644
--- a/modules_s/db_ops/Makefile
+++ b/modules_s/db2_ops/Makefile
@@ -8,7 +8,7 @@
 include ../../Makefile.defs
 
 auto_gen=
-NAME=db_ops.so
+NAME=db2_ops.so
 LIBS=
 
 
diff --git a/modules_s/db_ops/README b/modules_s/db2_ops/README
similarity index 96%
rename from modules_s/db_ops/README
rename to modules_s/db2_ops/README
index 7956ed6..c37fc89 100644
--- a/modules_s/db_ops/README
+++ b/modules_s/db2_ops/README
@@ -1,10 +1,10 @@
-1. db_ops module
+1. db2_ops module
 
 Tomas Mandys
 
    Iptel.org
 
-   Copyright © 2007 Tomas Mandys
+   Copyright © 2007 Tomas Mandys
      __________________________________________________________________
 
    1.1. Overview
@@ -123,7 +123,7 @@ tra_ops ]
 
 1.5. Functions
 
-1.5.1.  db_query(query | query_id [,handle] )
+1.5.1. db_query(query | query_id [,handle] )
 
    Executes query and in case of SELECT returns result via handle, seeks
    the first record and returns TRUE if table is not empty. The result is
@@ -142,7 +142,7 @@ tra_ops ]
 
         }
 
-1.5.2.  db_close(handle)
+1.5.2. db_close(handle)
 
    Close table that has been opened using db_query. Note all close after
    script processing automatically.
@@ -152,7 +152,7 @@ tra_ops ]
         db_close(my_handle);
         ...
 
-1.5.3.  db_first(handle)
+1.5.3. db_first(handle)
 
    Returns TRUE if table is not empty. Note that rewind might not be
    supported by particular db driver.
@@ -164,7 +164,7 @@ tra_ops ]
         }
         ...
 
-1.5.4.  db_next(handle)
+1.5.4. db_next(handle)
 
    Moves to the next record and returns TRUE if not EOF.
 
@@ -175,7 +175,7 @@ tra_ops ]
         }
         ...
 
-1.5.5.  db_seek(handle, row_no)
+1.5.5. db_seek(handle, row_no)
 
    Seeks at the row no (origin is zero) and Returns TRUE in case of
    success. Backward seek might not be supported by db driver.
@@ -187,7 +187,7 @@ tra_ops ]
         }
         ...
 
-1.5.6.  db_foreach(handle, route)
+1.5.6. db_foreach(handle, route)
 
    Call specific route for each row, loop is interrupted if route returns
    code <= 0. Return code of the last route call is returned as result of
@@ -204,7 +204,7 @@ tra_ops ]
         }
         ...
 
-1.5.7.  db_proper()
+1.5.7. db_proper()
 
    Hack which enables using db_ops queries in failure route. Call it at
    the beginning of failure_route block.
@@ -216,7 +216,7 @@ tra_ops ]
         ....
         }
 
-1.5.8.  @db.query.query_id
+1.5.8. @db.query.query_id
 
    Returns value of the first row and the first field.
 
@@ -225,7 +225,7 @@ tra_ops ]
         ....
         }
 
-1.5.9.  @db.query.query_id.count
+1.5.9. @db.query.query_id.count
 
    Returns number of rows in select query.
 
@@ -234,7 +234,7 @@ tra_ops ]
         ....
         }
 
-1.5.10.  @db.query.query_id.is_empty
+1.5.10. @db.query.query_id.is_empty
 
    Returns 1 if select query is empty.
 
@@ -243,7 +243,7 @@ tra_ops ]
                 # query is empty
         }
 
-1.5.11.  @db.query.query_id.field[m]
+1.5.11. @db.query.query_id.field[m]
 
    Returns value of the first row and the m-th field. @*.field supports
    select_any_uri and select_any_nameaddr.
@@ -253,7 +253,7 @@ tra_ops ]
                 ...
         }
 
-1.5.12.  @db.query.query_id.row[n]
+1.5.12. @db.query.query_id.row[n]
 
    Returns value of the n-th row and the first field, negative values
    count from the end (-1 == last row).
@@ -263,7 +263,7 @@ tra_ops ]
                 ...
         }
 
-1.5.13.  @db.query.query_id.row[n].field[m]
+1.5.13. @db.query.query_id.row[n].field[m]
 
    Returns value of the n-th row and the m-th field. @*.field supports
    select_any_uri and select_any_nameaddr.
@@ -273,7 +273,7 @@ tra_ops ]
                 ...
         }
 
-1.5.14.  @db.fetch.handle
+1.5.14. @db.fetch.handle
 
    Similar functionality as @db.query selects with exception that
    operation is performed at query has been opened by db_query.
@@ -292,7 +292,7 @@ tra_ops ]
         }
         db_close(my_handle);
 
-1.5.15.  @db.fetch.handle.row_no
+1.5.15. @db.fetch.handle.row_no
 
    Returns current row number (origin is zero).
 
diff --git a/modules_s/db_ops/db_ops.c b/modules_s/db2_ops/db2_ops.c
similarity index 99%
rename from modules_s/db_ops/db_ops.c
rename to modules_s/db2_ops/db2_ops.c
index 76a0ce0..6480a2b 100644
--- a/modules_s/db_ops/db_ops.c
+++ b/modules_s/db2_ops/db2_ops.c
@@ -47,7 +47,7 @@
 
 MODULE_VERSION
 
-#define MODULE_NAME "db_ops"
+#define MODULE_NAME "db2_ops"
 #define MODULE_NAME2 "db"
 
 static char* db_url = DEFAULT_DB_URL;
diff --git a/modules_s/db_ops/doc/Makefile b/modules_s/db2_ops/doc/Makefile
similarity index 78%
rename from modules_s/db_ops/doc/Makefile
rename to modules_s/db2_ops/doc/Makefile
index d90ee71..117ee1f 100644
--- a/modules_s/db_ops/doc/Makefile
+++ b/modules_s/db2_ops/doc/Makefile
@@ -1,4 +1,4 @@
-docs = db_ops.xml
+docs = db2_ops.xml
 
 docbook_dir=../../../docbook
 include $(docbook_dir)/Makefile.module
diff --git a/modules_s/db_ops/doc/db_ops.xml b/modules_s/db2_ops/doc/db2_ops.xml
similarity index 99%
rename from modules_s/db_ops/doc/db_ops.xml
rename to modules_s/db2_ops/doc/db2_ops.xml
index 667eaad..ae2d71f 100644
--- a/modules_s/db_ops/doc/db_ops.xml
+++ b/modules_s/db2_ops/doc/db2_ops.xml
@@ -2,7 +2,7 @@
 <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 
    "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
 
-<section id="db_ops" xmlns:xi="http://www.w3.org/2001/XInclude">
+<section id="db2_ops" xmlns:xi="http://www.w3.org/2001/XInclude">
     <sectioninfo>
 	<authorgroup>
 	    <author>
@@ -21,7 +21,7 @@
 
     </sectioninfo>
 
-    <title>db_ops module</title>
+    <title>db2_ops module</title>
 
     <section id="db_ops.overview">
 		<title>Overview</title>




More information about the sr-dev mailing list