Ejemplo n.º 1
0
 public virtual STransaction Delete(STransaction tr)
 {
     return(tr); // no changes here
 }
Ejemplo n.º 2
0
 public virtual RowSet RowSet(STransaction tr, SQuery top, SDict <long, SFunction> ags, Context cx)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 3
0
 public SearchRowSet(STransaction tr, SQuery top, SSearch sc, SDict <long, SFunction> ags, Context cx)
     : this(Source(tr, top, sc, ags, cx), sc, ags)
 {
 }
Ejemplo n.º 4
0
 public virtual STransaction Update(STransaction tr, SDict <string, Serialisable> assigs)
 {
     return(tr); // no changes here
 }
Ejemplo n.º 5
0
 public override STransaction Update(STransaction tr, SDict <string, Serialisable> assigs)
 {
     return((STransaction)tr.Install(new SUpdate(tr, _ob.rec ?? throw new System.Exception("No record"), assigs), tr.curpos)); // ok
 }
Ejemplo n.º 6
0
            public override STransaction Delete(STransaction tr)
            {
                var rc = _ob.rec ?? throw new System.Exception("No record");

                return((STransaction)tr.Install(new SDelete(tr, rc.table, rc.Defpos), tr.curpos)); // ok
            }
Ejemplo n.º 7
0
 public TableRowSet(STransaction db, STable t)
     : base(db + t.uid /*read constraint*/, t,
            SDict <long, SFunction> .Empty, t.rows.Length)
 {
     _tb = t;
 }
Ejemplo n.º 8
0
 protected STransaction(STransaction tr, long u) : base(tr)
 {
     autoCommit      = tr.autoCommit;
     uid             = tr.uid;
     readConstraints = tr.readConstraints + (u, true);
 }
Ejemplo n.º 9
0
 public override STransaction Update(STransaction tr, SDict <string, Serialisable> assigs)
 {
     throw new System.NotImplementedException();
 }
Ejemplo n.º 10
0
 public override STransaction Delete(STransaction tr)
 {
     throw new System.NotImplementedException();
 }
Ejemplo n.º 11
0
 public RowSet(STransaction tr, SQuery q, SDict <long, SFunction> ags, int?n) : base(n)
 {
     _tr = tr; _qry = q; _aggregates = ags;
 }
Ejemplo n.º 12
0
 public SDatabase MaybeAutoCommit(STransaction tr)
 {
     return(tr.autoCommit ? tr.Commit() : tr);
 }
Ejemplo n.º 13
0
 public STransaction(STransaction tr, SRole r) : base(tr, tr.objects, r, tr.curpos)
 {
     autoCommit      = tr.autoCommit;
     uid             = tr.uid;
     readConstraints = tr.readConstraints;
 }
Ejemplo n.º 14
0
 public SQuery(Types t, STransaction tr) : base(t, tr)
 {
     display = SDict <int, string> .Empty;
     cpos    = SDict <int, Serialisable> .Empty;
     names   = SDict <string, Serialisable> .Empty;
 }
Ejemplo n.º 15
0
 public IndexRowSet(STransaction tr, STable t, SIndex ix, SCList <Variant> key, SList <Serialisable> wh)
     : base(Rdc(tr, ix, key), t, SDict <long, SFunction> .Empty, t.rows.Length)
 {
     _ix     = ix; _key = key; _wh = wh;
     _unique = key.Length == _ix.cols.Length;
 }
Ejemplo n.º 16
0
 public override RowSet RowSet(STransaction tr, SQuery top, SDict <long, SFunction> ags, Context cx)
 {
     return(new GroupRowSet(tr, top, this, ags, cx));
 }
Ejemplo n.º 17
0
 public override STransaction Commit(STransaction tr, int c, AStream f)
 {
     return(base.Commit(tr, f));
 }