supabase-go-tables
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Supabase Go Tables

Generate Go structs from your Supabase tables

NPM Version npm bundle size

Generate Manually via API

https://mmvergara.github.io/supabase-go-tables/

Generate Using CLI (Recommended)

Installation

npm i -g supabase-go-tables
# or use any package manager

Usage

# run on root folder where .env file is present
npx supabase-go-tables

Make sure that SUPABASE_URL and SUPABASE_ANON_KEY are set in your environment variables

This command will copy the generated Go structs to your clipboard.

Sample Output

type TableFormat struct {
  profiles string
  products string
}

var Tables = TableFormat{
  profiles: "profiles",
  products: "products",
}

// Then you can do
supabaseClient.From(Tables.profiles).Select("*").Execute()

Package Sidebar

Install

npm i supabase-go-tables

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

18.3 kB

Total Files

15

Last publish

Collaborators

  • mmvergara