Skip to main content

Module connection

Module connection 

Source
Expand description

SQL connection boundary.

A connection owns a catalog instance plus statement-level transaction behavior.

SQL text / prepared statement
           |
           v
        parser
           |
           v
   planner + executor
           |
           v
        catalog
           |
           v
     btree + pager

This is where autocommit, explicit transactions, journal mode changes, and user-facing SQL errors are coordinated. The connection should not need to understand row encoding or page structure; it only sequences higher-level components.

Structsยง

Connection
Database
PreparedStatement
Transaction