edgedb-net icon indicating copy to clipboard operation
edgedb-net copied to clipboard

Feature: configure state in transactions

Open quinchs opened this issue 2 years ago • 0 comments

Currently, there's no way to configure state within transactions. The API for state on the client should be accessible on the tx object like so:

var result = await client.TransactionAsync(async (tx) =>
    tx.WithGlobals(new Dictionary<string, object>
    {
        { "abc": 123L }    
    })
    .QuerySingleAsync<long>("select global abc")
);

quinchs avatar May 01 '23 15:05 quinchs