Home
Docs/Database

Database Manager

FreePremium

Manage local and remote databases with support for 8 different engines, including native PostgreSQL that requires no external server.

Supported engines

EngineFreePremium
SQLite (local)βœ…βœ…
Firestore (Google)βœ…βœ…
Native PostgreSQLβ€”βœ…
MySQL / MariaDBβ€”βœ…
MongoDBβ€”βœ…
Redisβ€”βœ…
Supabaseβ€”βœ…
PlanetScaleβ€”βœ…

Native PostgreSQLPremium

Pocket Code includes a native PostgreSQL engine that runs directly on the device. No external server or internet connection needed.

psql β€” Native PostgreSQL on device
-- Crear base de datos local
CREATE DATABASE myapp;

-- Crear tabla
CREATE TABLE users (
  id SERIAL PRIMARY KEY,
  email TEXT UNIQUE NOT NULL,
  created_at TIMESTAMPTZ DEFAULT NOW()
);

-- Insertar datos
INSERT INTO users (email) VALUES ('dev@example.com');

-- Consultar
SELECT * FROM users;

Connect remote database

  1. 1Open the Database module.
  2. 2Tap "New connection".
  3. 3Select the engine (PostgreSQL, MySQL, MongoDB…).
  4. 4Enter host, port, database name, username and password.
  5. 5Tap Test connection and then Save.

Credentials are stored encrypted on the device using Android Keystore.

Query editor

  • β€’SQL autocomplete with table and column names
  • β€’Syntax highlighting for SQL, NoSQL and native query languages
  • β€’History of executed queries (10 free β€” Premium: unlimited)
  • β€’Saved queries (5 free β€” Premium: unlimited)
  • β€’Multiple query tabs (2 free β€” Premium: unlimited)
  • β€’Paginated table results for large datasets
  • β€’Export results to CSV or JSON
  • β€’Explain plan to analyze query performance
Free

AI SQL Assistant (natural language β†’ SQL)

Write your query in natural language and the assistant generates the SQL. Available free with Gemini (requires your API key). With Premium you can use any AI model.

Premium features

FeatureFreePremium
SQLite (local)βœ…βœ…
Remote connections (Neon, Supabase…)1Unlimited
Query history10Unlimited
Saved queries5Unlimited
Query tabs2Unlimited
Charts2 types5 types
Customizable dashboardβ€”βœ…
Scheduled backupβ€”βœ…
Cloud backup (Drive, Firebase)β€”βœ…
Schema diff / migrationsβ€”βœ