feat: add sql to LANGUAGE type, Judge0 mapping, and code cache

This commit is contained in:
2026-07-04 23:45:54 -06:00
parent bc3308da51
commit fbe98c455b
3 changed files with 7 additions and 2 deletions

View File

@@ -17,11 +17,14 @@ for i in range(4):
turtle.done()`
const sqlSource = "-- 在这里编写你的 SQL 语句\n"
export const languageToId: { [key in string]: number } = {
c: 50,
cpp: 54,
java: 62,
python: 71,
sql: 82,
}
export const sources = {
@@ -30,4 +33,5 @@ export const sources = {
java: javaSource,
python: pythonSource,
turtle: turtleSource,
sql: sqlSource,
}