Here are the examples of the python api sqlalchemy.func.TXID_CURRENT taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
Source : base.py
with GNU Lesser General Public License v3.0
from toluaina
with GNU Lesser General Public License v3.0
from toluaina
def txid_current(self):
"""
Get last committed transaction id from the database.
SELECT txid_current()
"""
return self.fetchone(
sa.select(["*"]).select_from(sa.func.TXID_CURRENT()),
label="txid_current",
)[0]
def parse_value(self, type_: str, value: str) -> Optional[str]: