@vibecode-db/client
v3
Playground & Docs
Getting Started
3
Introduction
Installation
Creating a Client
Adapters
4
Mock Adapter
Supabase Adapter
PocketBase Adapter
REST Adapter
CRUD
9
Select All Rows
Select Specific Columns
Select Single Row
Select Maybe Single
Insert a Row
Insert Multiple Rows
Update Rows
Upsert a Row
Delete Rows
Filters
10
Equal (eq)
Not Equal (neq)
Greater Than / Less Than
Pattern Match (like)
In Array (in)
Is Null
OR Filter
Negated Filter (not)
Match Multiple (match)
Array Contains
Transforms
5
Order Ascending
Order Descending
Limit Results
Range (Pagination)
Combined Query
Auth
4
Sign Up
Sign In
Get Session
Sign Out
Storage
4
Create & List Buckets
Upload & Download
List Files
Get Public URL
Realtime
2
Listen for Inserts
Listen for All Changes
RPC
2
Call RPC Function
RPC with String Result
Sample Expo App
4
Overview
Folder Structure
Architecture
Switching Adapters
Get Public URL
mock
Get the public URL for a file.
Adapter:
Mock
Supabase
PocketBase
REST
Ready
Code
Run
await client.storage.createBucket('images', { public: true }); await client.storage.from('images').upload('photo.jpg', 'binary-data'); const { data } = client.storage.from('images').getPublicUrl('photo.jpg'); return { publicUrl: data.publicUrl };
Press
Cmd+Enter
to run
Result
Click Run to execute the query