eXtremeDB xsql c/s cfg file sample

40 篇文章 0 订阅
4 篇文章 0 订阅

runtime_configuration : { 

   debug_library : false,
   disk_support  : true,
   shared_memory : false,
   transaction_manager : mvcc
},


db_params: {
  db_log_type:no 
},
sql_port : 30001,
sql_trace     : false,


database_name : "xsqldb1",
database_size : 8m, 
cache_size    : 256m,
sql_comm_buffer : 8m, 
database_filename : "xsqldb1.dbs",
log_filename : "xsqldb1.log",
schema        : "
    #define int1      signed<1>
    #define int2      signed<2>
    #define int4      signed<4>
    #define int8      signed<8>
    #define uint8     unsigned<8>
    #define uint4     unsigned<4>
    #define uint2     unsigned<2>
    #define uint1     unsigned<1>


    declare database xsql; 
class my_table
{
uint8 n1;
string s2;
float r3;
tree<n1> tn1;
};

    class Views
    {
        string name;
        string body;


        tree<name> pk;
    };


    class S
    {
        char<5>  sid;
        nullable char<20> sname; 
        nullable int4     status;
        date dat;
        char<15> city;
 
        vector<string> keywords;




        autoid[1000];
        hash<sid> pk[1000];
        tree<sname> snk;
        tree<status> stk;
        tree<keywords> inverse;
    };


    class P
    {
        char<5>  pid;
        char<20> pname; 
        char<6>  color;
        double   weight;
        char<15> city;


        autoid[1000];
        hash<pid> pk[1000];
    };


    class J
    {
        char<5>  jid;
        string jname;
        char<15> city;


        list;
        autoid[1000];
        hash<jid> pk[1000];
    };


    class SP 
    {
        char<5>  sid;
        char<5>  pid;
        char<5>  jid;
        int8     qty;


        list;
        autoid[1000];
        tree<sid> sk;
        tree<pid> pk;
        tree<jid> jk;
    };


    class Point { 
          uint4 x;
          uint4 y;
          tree<x,y> idx;
    };


    class DPoint { 
          uint4 x;
          uint4 y;
          tree<x desc,y desc> idx;
    };
"

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值