MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / setSQLSecurity

Method setSQLSecurity

src/Storages/StorageInMemoryMetadata.cpp:122–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void StorageInMemoryMetadata::setSQLSecurity(const ASTSQLSecurity & sql_security)
123{
124 if (sql_security.definer)
125 definer = sql_security.definer->toString();
126 else
127 definer = std::nullopt;
128
129 sql_security_type = sql_security.type;
130}
131
132UUID StorageInMemoryMetadata::getDefinerID(DB::ContextPtr context) const
133{

Callers 3

applyMethod · 0.80
StorageViewMethod · 0.80

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected