MCPcopy Create free account
hub / github.com/deepnote/deepnote / assertSqlCacheMode

Function assertSqlCacheMode

packages/blocks/src/blocks/sql-blocks.ts:118–124  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

116}
117
118function assertSqlCacheMode(value: string): SqlCacheMode {
119 const result = sqlCacheModeSchema.safeParse(value)
120 if (!result.success) {
121 throw new InvalidValueError(`Invalid sqlCacheMode: expected one of ${SQL_CACHE_MODES.join(', ')}`, { value })
122 }
123 return result.data
124}
125
126function assertSqlCellVariableType(value: string): SqlCellVariableType {
127 const result = sqlCellVariableTypeSchema.safeParse(value)

Calls

no outgoing calls

Tested by

no test coverage detected