Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

pgx-examples

This directory contains examples of how to work with various aspects of pgx.

  • arrays/: Working with Arrays
  • bad_ideas/: Some "bad ideas" to do in Postgres extensions
  • bytea/: Working with Postgres' bytea type as Vec<u8> and &[u8] in Rust
  • custom_types/: Create your own custom Postgres types backed by Rust structs/enums
  • errors/: Error handling using Postgres or Rust errors/panics
  • operators/: Creating operator functions and associated CREATE OPERATOR ddl
  • spi/: Using Postgres' Server Programming Interface (SPI)
  • srf/: Set-Returning-Functions
  • strings/: Using Postgres text/varlena types as Rust Strings and &strs