supabase

package
v1.6.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupabaseEnvTemplate []byte
View Source
var SupabaseSqlcConfigTemplate []byte

Functions

func CheckSupabaseCLI

func CheckSupabaseCLI() error

CheckSupabaseCLI checks if Supabase CLI is installed

Types

type SupabaseManager

type SupabaseManager struct {
	ProjectPath string
	Mode        flags.SupabaseMode
}

SupabaseManager handles Supabase CLI operations

func NewSupabaseManager

func NewSupabaseManager(projectPath string, mode flags.SupabaseMode) *SupabaseManager

NewSupabaseManager creates a new Supabase manager

func (*SupabaseManager) CreateMigration

func (sm *SupabaseManager) CreateMigration(name string) (string, error)

CreateMigration creates a new migration using supabase migration new

func (*SupabaseManager) GenerateSupabaseEnv

func (sm *SupabaseManager) GenerateSupabaseEnv() error

GenerateSupabaseEnv creates .env file with Supabase configuration including global environment variables

func (*SupabaseManager) GenerateSupabaseSqlcConfig

func (sm *SupabaseManager) GenerateSupabaseSqlcConfig() error

GenerateSupabaseSqlcConfig creates sqlc.yaml with Supabase migration path

func (*SupabaseManager) GetMigrationPath

func (sm *SupabaseManager) GetMigrationPath() string

GetMigrationPath returns the migration directory path

func (*SupabaseManager) Init

func (sm *SupabaseManager) Init() error

Init initializes Supabase project using supabase init command Handles interactive prompts for VS Code and IntelliJ Deno settings

func (*SupabaseManager) Start

func (sm *SupabaseManager) Start() error

Start starts local Supabase instance (only for local-db mode)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL