You don't need to install anything. You don't need to configure ports.
You just get a Database ID, and you send SQL commands via HTTP POST requests. That's it.
Click the button to generate a unique, persistent database file on our server.
β Database Created! Save this ID immediately:
...
β οΈ Warning: If you lose this ID, you lose your data. We cannot recover it.
You can test your database right here without writing code. Paste your ID above first!
Waiting for command...
π Try: CREATE TABLE users (name TEXT, weight INT);
π Try: INSERT INTO users VALUES ('John', 10);
π Try: SELECT * FROM users;
Now, connect your application. Copy the snippets below.
POST https://sqlegend.nethacker.cloud/api Content-Type: application/json
const DB_ID = "YOUR_ID_HERE";
const API_URL = "https://sqlegend.nethacker.cloud/api";
async function query(sql) {
const res = await fetch(API_URL, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ id: DB_ID, sql: sql })
});
return await res.json();
}
// Example usage:
query("SELECT * FROM users").then(console.log);
import requests
DB_ID = "YOUR_ID_HERE"
URL = "https://sqlegend.nethacker.cloud/api"
def run_sql(sql):
resp = requests.post(URL, json={"id": DB_ID, "sql": sql})
return resp.json()
print(run_sql("SELECT 1 + 1 as result"))