Skip to content

Commit

Permalink
Included lambda-sdk and updated TS configuration etc to make sure
Browse files Browse the repository at this point in the history
everything compiles.
  • Loading branch information
coco98 committed Oct 20, 2024
1 parent d5f596c commit c8df0bd
Show file tree
Hide file tree
Showing 18 changed files with 5,446 additions and 337 deletions.
Binary file modified duck.db.wal
Binary file not shown.
15 changes: 13 additions & 2 deletions generate-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export async function generateConfig(db: duckdb.Database): Promise<Configuration
const objectTypes: { [k: string]: ObjectType } = {};
const tables = await queryAll(db.connect(), "SHOW ALL TABLES");
for (let table of tables){
const tableName = `${table.database}_${table.schema}_${table.name}`;
const tableName = table.name; // `${table.database}_${table.schema}_${table.name}`;
const aliasName = `${table.database}.${table.schema}.${table.name}`;
tableNames.push(tableName);
tableAliases[tableName] = aliasName;
Expand All @@ -111,7 +111,18 @@ export async function generateConfig(db: duckdb.Database): Promise<Configuration
object_types: objectTypes,
functions: [{
name: "Hello",
arguments: {},
arguments: {
_headers: {
description: 'oauth2 headers',
type: {
type: 'array',
element_type: {
type: 'named',
name: 'String'
}
}
}
},
result_type: {
type: "named",
name: "String"
Expand Down
Loading

0 comments on commit c8df0bd

Please sign in to comment.