PocketCode · DB ManagerA real PostgreSQL server lives in this app
PostgreSQL 18.2 embedded in the app, on the device and without root, plus SQL and NoSQL engines, an AI SQL console, an ER designer and safe mode.

Postgres, zero config
A real database on the phone, with no server to set up (64-bit ARM devices only).
- Real 64-bit ARM postgres binary, no root, no network
- The first start unpacks the engine and prepares the data directory on the device
- Loopback only, always password-protected

One client, every engine
Local, cloud and NoSQL without switching UIs.
- PostgreSQL, MySQL/MariaDB, Neon, Supabase, PlanetScale and Cloudflare D1
- Redis (your server or Upstash), Turso, Firestore and MongoDB (collection list only)
- SSH tunnel (PostgreSQL and MySQL), TLS options, connection test

SQL in plain language
Describe it; review the SQL, then accept it.
- Plain words to SQL, with the provider and model shown
- Nothing reaches the editor until you accept
- Knows your table and column names, never your rows

Safe mode and masking
A confirmation before you wipe production by accident.
- Asks first on DELETE or UPDATE without WHERE, DROP and TRUNCATE
- Data masking by column name, in the viewer only
- Slow-query log, cancel or terminate sessions (embedded engine), fingerprint or PIN lock
// spec
The spec sheet
plan.free
- ·Embedded Postgres, one database
- ·All 12 engines, one saved server
- ·SQL console and data viewer
- ·Safe mode, backup and restore
plan.pro
- +No plan cap on connections, tables, tabs and databases
- +Schema compare with generated migrations
- +Test data up to 1,000 rows per run (Free: 100)
- +Scheduled backups and no cap on saved queries (Free: 5)
// works with
From the blog
// faq
Frequently asked questions
Can you run PostgreSQL on an Android phone?
Yes. PocketCode runs a real embedded PostgreSQL 18.2 server directly on the device (64-bit ARM), so you can create, query, and manage a full Postgres database with no external server (once you're signed in, no internet is needed).
Which database engines are supported?
12 engines in total: PostgreSQL (embedded on the phone or on your own server), MySQL/MariaDB, Neon, Supabase, PlanetScale, Turso, Cloudflare D1, MongoDB Atlas, MongoDB, Upstash, Redis and Cloud Firestore. The SQL engines share the console, data viewer and ER diagram; Redis, Firestore and MongoDB open in their own browsers (MongoDB shows its collections only).
Can it generate ER diagrams?
Yes. The ER diagram is drawn from any SQL connection that has tables (the local PostgreSQL, your PostgreSQL and MySQL servers, Neon, Supabase, Turso, Cloudflare D1 and more), and you can export it as a PNG or copy it into the schema designer, which generates SQL, Room, Prisma, TypeORM, Django, JSON Schema and DBML (7 formats).
Can you use AI to write SQL?
Yes. The built-in AI assistant turns plain-language requests into SQL and can explain a query's execution plan, helping you write and optimize queries without memorizing exact syntax for every engine. It uses your own AI provider and sends table and column names, never rows; you accept the SQL before it reaches the editor.
Does it protect sensitive data?
Yes. Data masking hides chosen columns in the data viewer (the database itself isn't touched), a fingerprint or PIN lock guards the module, and backups with restore (pg_dump or SQL dump, with a safety copy taken before restoring) keep the local database recoverable; scheduled backups are Pro.
