Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 713 Bytes

File metadata and controls

41 lines (32 loc) · 713 Bytes

pgAim

PostgreSQL extension developed using pgrx.

Prerequisites

  • Rust toolchain (latest stable)
  • cargo-pgrx
  • PostgreSQL development headers

Setup

  1. Install cargo-pgrx:
    cargo install --locked cargo-pgrx
  2. Initialize pgrx (if not already):
    cargo pgrx init

Development

  • Run in-memory Postgres instance:
    cargo pgrx run
  • Run tests:
    cargo pgrx test
  • Install locally:
    cargo pgrx install

Structure

  • src/lib.rs: Extension entry point and exported functions.
  • pg_aim.control: Postgres extension control file.
  • src/pg_aim.sql: Custom SQL initialization (if applicable).