SELECT 'CREATE DATABASE testing' WHERE NOT EXISTS (SELECT FROM pg_database WHERE datname = 'testing')\gexec
For code examples and implementation guides, please refer to the “Examples” section on our developer portal. Go to GitHub Repository