edgedb / edgedb-net

The official .NET client library for EdgeDB

Home Page:https://edgedb.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: configure state in transactions

quinchs opened this issue · 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")
);