Crate butane_core
source ·Expand description
Library providing functionality used by butane macros and tools.
Re-exports§
pub use query::Query;
pub use sqlval::AsPrimaryKey;
pub use sqlval::FieldType;
pub use sqlval::FromSql;
pub use sqlval::PrimaryKeyType;
pub use sqlval::SqlVal;
pub use sqlval::SqlValRef;
pub use sqlval::ToSql;
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!
, andfind!
macros instead of using this module directly. - Types and traits for interacting with a value that can be stored in the database.
Macros§
- Noop for when feature log is not enabled.
- Noop for when feature log is not enabled.
- Create a compiler error.
- Noop for when feature log is not enabled.
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§
- An object in the database.
- A type which may be the result of a database query.
Type Aliases§
- Result type that uses
crate::Error
.