MCPcopy Index your code
hub / github.com/outerbase/studio / parseConstraintConflict

Function parseConstraintConflict

src/drivers/sqlite/sql-parse-table.ts:180–196  ·  view source on GitHub ↗
(
  cursor: CursorV2
)

Source from the content-addressed store, hash-verified

178}
179
180function parseConstraintConflict(
181 cursor: CursorV2
182): DatabaseColumnConflict | undefined {
183 if (!cursor.match("ON")) return;
184 cursor.next();
185
186 if (!cursor.match("CONFLICT")) return;
187 cursor.next();
188
189 if (!cursor.end()) {
190 const conflict = cursor.read().toUpperCase();
191 cursor.next();
192 return conflict as DatabaseColumnConflict;
193 }
194
195 return;
196}
197
198export function parseColumnList(columnPtr: CursorV2) {
199 const columns: string[] = [];

Callers 1

parseColumnConstraintFunction · 0.85

Calls 4

nextMethod · 0.80
endMethod · 0.80
readMethod · 0.80
matchMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…