Skip to content

Commit

Permalink
update sdk to v6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TristenHarr committed Aug 8, 2024
1 parent ad9bbff commit 4d3ce52
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# DuckDB Connector Changelog
This changelog documents changes between release tags.

## [0.0.21] - 2024-08-8
* Update SDK version

## [0.0.20] - 2024-08-8
* Fix versions in connector-definition

Expand Down
4 changes: 2 additions & 2 deletions connector-definition/connector-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
packagingDefinition:
type: PrebuiltDockerImage
dockerImage: ghcr.io/hasura/ndc-duckdb:v0.0.20
dockerImage: ghcr.io/hasura/ndc-duckdb:v0.0.21
supportedEnvironmentVariables:
- name: DUCKDB_URL
description: The url for the DuckDB database
commands:
update:
type: Dockerized
dockerImage: ghcr.io/hasura/ndc-duckdb:v0.0.20
dockerImage: ghcr.io/hasura/ndc-duckdb:v0.0.21
commandArgs:
- update
dockerComposeWatch:
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "duckdb-sdk",
"version": "0.0.20",
"version": "0.0.21",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -13,7 +13,7 @@
"typescript-json-schema": "^0.62.0"
},
"dependencies": {
"@hasura/ndc-sdk-typescript": "^5.2.0",
"@hasura/ndc-sdk-typescript": "^6.0.0",
"duckdb": "^1.0.0",
"sql-formatter": "^13.0.4",
"sqlstring-sqlite": "^0.1.1"
Expand Down
7 changes: 2 additions & 5 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { CapabilitiesResponse, ScalarType } from "@hasura/ndc-sdk-typescript";
import { Capabilities, ScalarType } from "@hasura/ndc-sdk-typescript";
import { JSONSchemaObject } from "@json-schema-tools/meta-schema";

export const CAPABILITIES_RESPONSE: CapabilitiesResponse = {
version: "0.1.5",
capabilities: {
export const CAPABILITIES_RESPONSE: Capabilities = {
query: {
variables: {}
},
Expand All @@ -15,7 +13,6 @@ export const CAPABILITIES_RESPONSE: CapabilitiesResponse = {
order_by_aggregate: {},
relation_comparisons: {}
}
},
};
export const MAX_32_INT: number = 2147483647;
export const SCALAR_TYPES: { [key: string]: ScalarType } = {
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
QueryResponse,
MutationRequest,
MutationResponse,
CapabilitiesResponse,
Capabilities,
ExplainResponse,
start,
Connector,
Expand Down Expand Up @@ -92,7 +92,7 @@ const connector: Connector<Configuration, State> = {
* from the NDC specification.
* @param configuration
*/
getCapabilities(_: Configuration): CapabilitiesResponse {
getCapabilities(_: Configuration): Capabilities {
return CAPABILITIES_RESPONSE;
},

Expand Down Expand Up @@ -204,7 +204,7 @@ const connector: Connector<Configuration, State> = {
* @param configuration
* @param state
*/
healthCheck(_: Configuration, __: State): Promise<undefined> {
getHealthReadiness(_: Configuration, __: State): Promise<undefined> {
return Promise.resolve(undefined);
},

Expand Down

0 comments on commit 4d3ce52

Please sign in to comment.