Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rohit-kadhe committed Mar 24, 2024
1 parent 2de6e8e commit 7940840
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion data_types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export const CHArray = <T extends ChDataType>(t: T): ChArray<T> => new ChArray(t
export const CHEnum = <T extends Record<string, number>>(enumObj: T): ChEnum<T> => new ChEnum(enumObj)
export const CHNullable = <T extends ChPrimitiveType>(type: T): ChNullable<T> => new ChNullable(type)

// You can still export the entire ClickhouseTypes object if you wish
export const ClickhouseTypes = {
CHUInt8,
CHUInt16,
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/clickhouse_schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('ClickhouseSchema Tests', () => {

const schema = new ClickhouseSchema(schemaDefinition, options)
// eslint-disable-next-line @typescript-eslint/no-unused-vars
type ChSchemaDefinition = InferClickhouseSchemaType<typeof schema>
type schemaType = InferClickhouseSchemaType<typeof schema>
expect(schema.GetOptions()).toEqual(options)
})

Expand Down Expand Up @@ -136,7 +136,6 @@ describe('ClickhouseSchema Tests', () => {
})
const expectedQuery = 'CREATE TABLE IF NOT EXISTS users_table\n(\nid UUID,\nname String DEFAULT \'John Doe\',\nemail String\n)\nENGINE = ReplicatedMergeTree()\nPRIMARY KEY id'
const query = schema.GetCreateTableQuery()
console.log(query)
expect(query).toEqual(expectedQuery)
})

Expand Down

0 comments on commit 7940840

Please sign in to comment.