Skip to main content

16 posts tagged with "database"

View All Tags

Vercel migrations

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Vercel doesn't have a single, built-in migration system but instead relies on standard, database-specific tools. For relational databases like Vercel Postgres, you use traditional ORMs or migration libraries. For key-value stores like Vercel KV, migration is typically a manual process of data transformation.

Vercel Database Integration Overview and Recommendations

· 6 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Vercel Database Integration Overview and Recommendations

Vercel provides a streamlined way to integrate databases into your projects, focusing on a serverless and edge-centric approach. Instead of a single database, Vercel offers a suite of storage solutions, each optimized for different use cases. The integration process is designed to be seamless, with first-class support for a range of serverless databases [1].

Use this Instead of SQlite on Vercel

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Is SQLite Supported on Vercel? 💾

No, SQLite is not officially supported by Vercel for production applications because of its reliance on the local filesystem. Vercel's serverless functions are stateless and run in a read-only environment, meaning any changes to the local filesystem are discarded after the function's execution. This makes it impossible to persist the SQLite database file between function invocations. Vercel source

While you might be able to get a read-only SQLite database to work by including the database file in your deployment bundle, any attempt to write to it will fail. This limitation makes SQLite unsuitable for most dynamic web applications on the Vercel platform.

Vercel Database Options and Solutions

· 6 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Vercel Database Options: A Comprehensive Guide 🗃️

Vercel provides a suite of data storage solutions designed to complement its serverless and edge-first architecture. Instead of a single "Vercel Database," you get a selection of tools, each optimized for a specific use case. This allows you to choose the right database for the job, whether it's a simple key-value store or a full relational database.

Supabase answers

· 10 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Custom Postgres Roles and RLS in Supabase

Yes, you can define your own custom PostgreSQL roles and use them with RLS in Supabase. This is a powerful feature for implementing sophisticated Role-Based Access Control (RBAC) [1, 2].

The key is to understand that Supabase's built-in auth.uid() function and authenticated role are tied to the user's session. To use custom roles, you need to store this role information and make it accessible to your RLS policies.

Supabase vendor-lock

· 5 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

There is minimal vendor lock-in with Supabase. The platform is designed to be as open as possible, leveraging established, open-source technologies. This makes it relatively easy to migrate away from their managed service if needed.

Integrate the Supabase

· 7 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Supabase is built on a standard PostgreSQL database, giving you the flexibility to interact with it using various tools and methods. This guide explores how to integrate with Supabase, extend its functionality, and choose the right method for different tasks.

Supabase version control

· 9 min read
Serhii Hrekov
software engineer, creator, artist, programmer, projects founder

Building robust applications requires more than just a functional database; it requires a disciplined approach to managing changes, testing, and deployment. This guide will focus on the DevOps side of Supabase, explaining how to handle database migrations, integrate with CI/CD pipelines, and manage test data.