浏览代码

- table definition for htable module

git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@5039 689a6050-402a-0410-94f2-e92a70836424
Elena-Ramona Modroiu 17 年之前
父节点
当前提交
0ba2767853
共有 2 个文件被更改,包括 71 次插入0 次删除
  1. 59 0
      lib/srdb1/schema/htable.xml
  2. 12 0
      lib/srdb1/schema/kamailio-htable.xml

+ 59 - 0
lib/srdb1/schema/htable.xml

@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE table PUBLIC "-//kamailio.org//DTD DBSchema V1.1//EN" 
+  "http://kamailio.org/pub/kamailio/dbschema/dtd/1.1/dbschema.dtd" [
+
+<!ENTITY % entities SYSTEM "entities.xml">
+%entities;
+
+]>
+
+<table id="htable" xmlns:db="http://docbook.org/ns/docbook">
+    <name>htable</name>
+    <version>1</version>
+    <type db="mysql">&MYSQL_TABLE_TYPE;</type>
+    <description>
+        <db:para>This table us used by the htabke module to load values in the hash table at start up. More information about the avpops module can be found at: &KAMAILIO_MOD_DOC;htable.html
+        </db:para>
+    </description>
+
+    <column id="id">
+        <name>id</name>
+        <type>unsigned int</type>
+        <size>&table_id_len;</size>
+        <autoincrement/>
+        <primary/>
+        <type db="dbtext">int,auto</type>
+        <description>Unique ID</description>
+    </column>
+
+    <column id="key_name">
+        <name>key_name</name>
+        <type>string</type>
+        <size>64</size>
+        <default/>
+        <description>Name of the hash key</description>
+    </column>
+
+    <column id="key_type">
+        <name>key_type</name>
+        <type>int</type>
+        <default>0</default>
+        <description>Type of the key (0 - single value; 1 - array)</description>
+    </column>
+
+    <column id="value_type">
+        <name>value_type</name>
+        <type>int</type>
+        <default>0</default>
+        <description>Type of the value (0 - string valuel 1 - integer value)</description>
+    </column>
+
+    <column id="attribute">
+        <name>key_value</name>
+        <type>string</type>
+        <size>128</size>
+        <default/>
+        <description>The value of the key</description>
+    </column>
+
+</table>

+ 12 - 0
lib/srdb1/schema/kamailio-htable.xml

@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE database PUBLIC "-//kamailio.org//DTD DBSchema V1.1//EN"
+  "http://kamailio.org/pub/kamailio/dbschema/dtd/1.1/dbschema.dtd" [
+
+  <!ENTITY % entities SYSTEM "entities.xml">
+  %entities;
+]>
+
+<database xmlns:xi="http://www.w3.org/2001/XInclude">
+    <name>HashTable Values</name>
+    <xi:include href="htable.xml"/>
+</database>