MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / for_update_clause

Method for_update_clause

lib/sqlalchemy/dialects/oracle/base.py:1743–1759  ·  view source on GitHub ↗
(self, select, **kw)

Source from the content-addressed store, hash-verified

1741 return "SELECT 1 FROM DUAL WHERE 1!=1"
1742
1743 def for_update_clause(self, select, **kw):
1744 if self.is_subquery():
1745 return ""
1746
1747 tmp = " FOR UPDATE"
1748
1749 if select._for_update_arg.of:
1750 tmp += " OF " + ", ".join(
1751 self.process(elem, **kw) for elem in select._for_update_arg.of
1752 )
1753
1754 if select._for_update_arg.nowait:
1755 tmp += " NOWAIT"
1756 if select._for_update_arg.skip_locked:
1757 tmp += " SKIP LOCKED"
1758
1759 return tmp
1760
1761 def visit_is_distinct_from_binary(self, binary, operator, **kw):
1762 return "DECODE(%s, %s, 0, 1) = 1" % (

Callers

nothing calls this directly

Calls 3

is_subqueryMethod · 0.80
joinMethod · 0.45
processMethod · 0.45

Tested by

no test coverage detected