Пример #1
0
 public static void CreateContainer()
 {
     var user = User.User.New( "root", "12345678");
     string container_name = "nunit_container1";
     var db  = DataBase.LoadFrom( "nunit_db", null );
     var new_dc = new DataContainer( db, container_name );
     new_dc.AddAccess( user, AccessFunctions.Access.AccessLevel.READ_WRITE );
     new_dc.AddColumn( new Column( DataType.STRING, "col1" ), user );
     new_dc.AddColumn( new Column( DataType.FLOAT, "col2" ), user );
     new_dc.BuildIndex();
     new_dc.Save();
 }