Kwil
1 program
Added 2026-03-13T02:20:43Z
Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled
Evidence
Report issue
View issues
Aliases: Kuneiform, KwilDB
Provenance: commit d36a3d9aaa · authored 2026-03-13T03:21:05+01:00 · agent claude-code · model claude-sonnet-4-6
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Social Database Schema
Provenance: commit d36a3d9aaa · authored 2026-03-13T03:21:05+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
database social;
table users {
id int primary key notnull,
username text notnull unique,
wallet text notnull unique
}
table posts {
id int primary key notnull,
author_id int notnull,
content text notnull,
created_at int notnull,
foreign key (author_id) references users(id)
}
procedure create_user($id int, $username text, $wallet text) public {
INSERT INTO users (id, username, wallet)
VALUES ($id, $username, $wallet);
}
procedure add_post($id int, $author int, $content text, $time int) public {
INSERT INTO posts (id, author_id, content, created_at)
VALUES ($id, $author, $content, $time);
}
procedure get_user_posts($uid int) public view
returns table(content text, created_at int) {
return SELECT content, created_at
FROM posts
WHERE author_id = $uid
ORDER BY created_at DESC;
}