Skip to content

Commit

Permalink
fix: spider example folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
saikatmitra91 committed May 22, 2024
1 parent 2278715 commit d8e87e4
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/spider-using-ts/empiricalrc.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Config, loadDataset, JSScriptScorer } from "empiricalrun";
import { executeQuery, getConnection, getSchema } from "./db";
import { executeQuery, getConnection, getSchema } from "./src/db";

async function datasetLoader() {
let dataset = await loadDataset({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import sqlite3 from "sqlite3";
import { cleanClosingBraces, loadJson, removeBackticks } from "./utils";
import fs from "fs";

const dbSchemas = loadJson("./schema.json");
const dbSchemas = loadJson("./src/scripts/schema.json");

export function getSchema(dbName: string): string {
return dbSchemas[dbName];
Expand All @@ -14,7 +14,7 @@ async function createDatabase(
): Promise<sqlite3.Database> {
return new Promise((resolve) => {
const schemaScript = dbSchemas[dbName];
const createScript = loadJson("./create.json")[dbName];
const createScript = loadJson("./src/scripts/insert.json")[dbName];

con.serialize(() => {
con.exec(schemaScript, () => {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d8e87e4

Please sign in to comment.