- formatDDLCreateTableSchema
- formatDDLType
- getDDLColumnType
- guessColumnType
- guessSchemaFromFile
- newSchemaColumn
- normalizeToSchema
- parquetFieldFromSchema
▸ formatDDLCreateTableSchema(tableName
: string, columnsInfo
: Column[], columnType?
: Record<string, string>): string
Name | Type |
---|---|
tableName |
string |
columnsInfo |
Column[] |
columnType? |
Record<string, string> |
Returns: string
Defined in: schema.ts:192
▸ formatDDLType(columnInfo
: Column | undefined, indent
: string): string
Name | Type |
---|---|
columnInfo |
Column | undefined |
indent |
string |
Returns: string
Defined in: schema.ts:210
▸ getDDLColumnType(columnInfo
: Column): "boolean"
| "bigint"
| "float"
| "string"
| "array"
| "struct"
Name | Type |
---|---|
columnInfo |
Column |
Returns: "boolean"
| "bigint"
| "float"
| "string"
| "array"
| "struct"
Defined in: schema.ts:228
▸ guessColumnType(column
: Column, value
: Record<string, any>): void
Name | Type |
---|---|
column |
Column |
value |
Record<string, any> |
Returns: void
Defined in: schema.ts:81
▸ guessSchemaFromFile(fileSystem
: FileSystem, file
: DatabaseCopyInputFile, args
: DatabaseCopyOptions): Promise<Record<string, Column>>
Name | Type |
---|---|
fileSystem |
FileSystem |
file |
DatabaseCopyInputFile |
args |
DatabaseCopyOptions |
Returns: Promise<Record<string, Column>>
Defined in: schema.ts:50
▸ newSchemaColumn(table
: string, name
: string, type
: string): Column
Name | Type |
---|---|
table |
string |
name |
string |
type |
string |
Returns: Column
Defined in: schema.ts:31
▸ normalizeToSchema(record
: any, columns
: Column[], columnType?
: Record<string, any>): any
Name | Type |
---|---|
record |
any |
columns |
Column[] |
columnType? |
Record<string, any> |
Returns: any
Defined in: schema.ts:121
▸ parquetFieldFromSchema(schema
: Column, columnType?
: Record<string, any>): { compression
: undefined = 'GZIP'; optional
: boolean ; type
: string = 'BOOLEAN' } | { compression
: string = 'GZIP'; optional
: boolean ; type
: string = 'JSON' }
Name | Type |
---|---|
schema |
Column |
columnType? |
Record<string, any> |
Returns: { compression
: undefined = 'GZIP'; optional
: boolean ; type
: string = 'BOOLEAN' } | { compression
: string = 'GZIP'; optional
: boolean ; type
: string = 'JSON' }
Defined in: schema.ts:165