test.mco

来自「eXtremeDB数据库在Linux平台下的使用源码。内含多个示例程序」· MCO 代码 · 共 48 行

MCO
48
字号
/****************************************************************** *                                                                * * Copyright (c) 2001-2007 McObject LLC. All Right Reserved.      * *                                                                * ******************************************************************//* The simplest schema imaginable */#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>/* Object id is simply an unsigned long */struct Id{	uint4 seq;};declare database  test;declare oid       Id[20000];class TestClass {	int4 		a1;	string 		key;	int4 		a2;	char<20> 	k2;	int4 		a3;	int4 		k3;	int4 		a4;	int4 		v1;	string 		v2;	list;	oid;	tree <key,k2,k3> i1;	tree <k2,k3> i2;};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?