Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

kevspa/dupabase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dupabase

A D wrapper around the PostgREST API for supabase

Basic Example

import dupabase;
import std.stdio;

auto key = import("key.txt");
void main() {
  auto db = newDB("something.supabase.co", key);
  writeln(db.getRows("test_table"));
  db.makeRows("test_table", true, ["id":"12345"]);
  db.updateRows("test_table", ["id":"1"], ["id":"2"]);
  db.deleteRows("test_table", ["id":"12345"]);
  writeln(db.getRow("test_table", 2));
}

Features not implemented (yet)

  • Log in with Magic Link via email
  • Sign up with phone & password
  • Login via SMS OTP (Supabase note: You must enter your own twilio credentials on the auth settings page to enable SMS-based Logins.)
  • Verify login via SMS OTP (Suapbase note: You must enter your own twilio credentials on the auth settings page to enable SMS-based OTP verification.)
  • Reset password via email
  • Update a users information
  • Send a user an invite over email (Supabase note: This endpoint requires you use the service_role_key when initializing the client, and should only be invoked from the server, never from the client.)