Connecting to a Database
Learn how Database Connections work in Wappler and how to reuse them in Server Actions.
Connections
Introduction
A database connection is the foundation for every Server Connect action that reads or writes data. In this tour, you will look at the connection setup details Wappler needs, understand how driver and credentials affect the target database, and see why this step comes before every query, insert, update, or delete workflow.
Database Connections
Before you can query or modify data, configure a Database Connection for your project target(s). This stores credentials and makes the connection reusable in Server Actions.
Targets Matter
Make sure your Development and Production targets are configured. Connections are typically created per target.
Reuse Everywhere
Once created, select the connection in Database Query/Insert/Update/Delete steps.
Next steps
Return to the Database Operations menu to continue with Queries, Insert, Update, Delete, or Paging.
Database Operations
Browse Database Operations tours: Quick Overview, Connections, and Queries.
Database Operations
Choose a Database Operations tour to start.
Quick Overview
Get a quick overview of Database Operations: what it is, where to find it, and how it fits in your workflow.
Introduction
Use this quick overview to place the main database actions in the right order before you build a real flow. You will compare when to query, insert, update, delete, or page records, so the focused operation tours feel like deliberate workflow choices instead of isolated features.
Database Operations in Wappler
Wappler provides powerful visual tools for working with databases. You can connect to MySQL, PostgreSQL, SQL Server, and more.
Creating a Database Connection
First, create a database connection in your project settings. This securely stores your database credentials.
Creating Queries
In Server Connect, add a Database Query step. Use the visual query builder to select tables, columns, and add filters.
Inserting Records
Use the Database Insert step to add new records. Map form fields to database columns visually.
Updating Records
The Database Update step lets you modify existing records. Set conditions to update specific records.
Deleting Records
Use the Database Delete step to remove records. Always add proper security checks before deleting data.
Next steps
Return to the Database Operations menu to dive deeper into a specific topic like Queries, Insert, Update, Delete, or Paging.
Database Operations
Browse Database Operations tours: Quick Overview, Connections, and Queries.
Database Operations
Choose a Database Operations tour to start.