示例#1
0
        /// <summary>
        /// Use this method to initialize your stress test.
        /// You can drop existing collection, load initial data and run checkpoint before finish
        /// </summary>
        public override void OnInit(SqlDB db)
        {
            db.Execute("DROP COLLECTION col1");

            db.Execute("INSERT INTO col1 VALUES { _id: 1, name:'John' }");

            db.Execute("CHECKPOINT");
        }
示例#2
0
 public void Update_Col1_Active(SqlDB db)
 {
     db.Execute("UPDATE col1 SET active = true WHERE active = false");
 }
示例#3
0
 public void Insert_Col1(SqlDB db)
 {
     db.Execute($"INSERT INTO col1:int VALUES {{ name: 'John-{Guid.NewGuid()}', active: false }}");
 }