PostgreSQL on Mac, iPhone and iPad.
Browse tables, run SQL, read query plans and edit rows on a PostgreSQL server. Reach private servers through an SSH tunnel, without leaving the app.
What you can do
Released versions: Mac 1.0.5, iPhone and iPad 1.1.1. Marked where something is on one platform only.
- Connect over TLS. With TLS on, Datark verifies the server certificate and host name by default.
- Browse tables in a native grid with sorting, filters and paging, and edit cells, add rows and delete rows.
- A schema tree with views, materialized views (read-only), triggers, sequences, types and routines.Mac only
- Run SQL, read results as a table, JSON or chart, and inspect a query plan (EXPLAIN).
- Begin, Commit and Rollback in the editor.
- Users & Roles lists the roles on the server, read-only. Schema Diff compares two schema snapshots.
- Paste a postgres:// connection URL to fill in the connection form.Mac only
- Reach a server on a private network through an SSH tunnel, set up in the connection itself.
- Mark a connection read-only so a write is refused instead of sent.
Connect
- Open Datark and add a connection. Choose PostgreSQL and enter the host, port, database, user and password. The password goes into the Apple Keychain.
- Leave TLS on for any server you reach over a network. Datark checks the certificate and host name; if your server uses a private certificate authority, pick the TLS mode that matches it in the connection settings.
- For a server on a private network, turn on the SSH tunnel in the same form and give the database address as the SSH server sees it.
What to know first
Limits of Mac 1.0.5 and iPhone and iPad 1.1.1.
- Stop asks PostgreSQL to cancel the running statement when you are outside a transaction. Behind a transaction-pooling proxy such as PgBouncer the cancellation may not reach it, and inside a transaction Stop only ends the wait in Datark, so check the database before you run a write again.
- On a read-only connection, Datark refuses any statement that names a setting or function able to switch the read-only guard off, such as set_config, dblink, lo_import or lo_export, even in a harmless read.
- On iPhone and iPad 1.1, use Run Statement, Run Selection or Run All.
Checked against Datark 1.0.5 for Mac and 1.1.1 for iPhone and iPad.
iPhone and iPad 1.1 · Mac preview
Available in iPhone and iPad 1.1.1. These additions are also planned for Mac 1.1 and are not included in the current Mac 1.0.5 release.
- In 1.1, paste a postgres:// or postgresql:// connection URL on Mac, iPhone and iPad to fill in the connection form.
Check the release notes for confirmed availability.
Guides
Connect to PostgreSQL through an SSH tunnel
Reach a database that is only open to an SSH server, on Mac, iPhone and iPad.
Read the guideRead-only connections
Open a database so that Datark refuses to change it, and what that does and does not guarantee.
Read the guideBack up PostgreSQL with pg_dump
Datark's exports move data around; for a backup you can restore from, use pg_dump.
Read the guideImport CSV and TSV files into a table
Load one or several delimited files into an existing table, with a preview before anything is written.
Read the guide
Other databases
Download Datark. It's free.
Free for Mac, iPhone and iPad. No account required.