UNPKG
@wbce-d9/schema
Version:
latest (10.0.0)
10.0.0
9.26.4
9.26.3
Utility for extracting information about existing DB schema
directus.io
LaWebcapsule/directus9
@wbce-d9/schema
/
dist
/
utils
/
extract-max-length.d.ts
6 lines
(5 loc)
•
168 B
TypeScript
View Raw
1
2
3
4
5
6
/** * Extracts the length value out of a given datatype * For example: `varchar(32)` => 32 */
export
default
function
extractMaxLength
(
type
:
string
):
null
|
number
;