Crate butane_core

source ·
Expand description

Library providing functionality used by butane macros and tools.

Re-exports§

Modules§

  • Code-generation backend
  • For supporting additional types with the Pg backend (or other future backends).
  • Types, traits, and methods for interacting with a database.
  • Implementation of foreign key relationships between models.
  • Internals called by Butane codegen. Semver exempt.
  • Implementation of many-to-many relationships between models.
  • For working with migrations. If using the butane CLI tool, it is not necessary to use these types directly.
  • Types to support database queries. Most users will use the query!, filter!, and find! macros instead of using this module directly.
  • Types and traits for interacting with a value that can be stored in the database.

Macros§

Structs§

  • Wrapper around a PrimaryKeyType to indicate the the primary key will be initialized automatically when the object is created in the database.

Enums§

  • Butane errors.
  • Enumeration of the types a database value may take.

Traits§

Type Aliases§