Skip to content

Commit

Permalink
Merge branch 'r/0.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
emirror-de committed Sep 20, 2021
2 parents 97a9047 + 23a783a commit 26375a8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions naphtha/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "naphtha"
version = "0.3.0"
version = "0.3.1"
authors = ["Lewin Probst <[email protected]>"]
edition = "2018"
license = "MIT OR Apache-2.0"
description = "Work in progress"
description = "Universal database connection layer for your application."
homepage = "https://github.com/emirror-de/naphtha"
documentation = "https://github.com/emirror-de/naphtha"
repository = "https://github.com/emirror-de/naphtha"
Expand Down
17 changes: 14 additions & 3 deletions naphtha/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,16 @@
//! #[macro_use]
//! extern crate naphtha;
//!
//! use {naphtha::{model, DatabaseModel, DatabaseUpdateHandler}, diesel::table};
//! use {
//! naphtha::{
//! model,
//! DatabaseModel,
//! DatabaseInsertHandler,
//! DatabaseUpdateHandler,
//! DatabaseRemoveHandler
//! },
//! diesel::table
//! };
//! #[cfg(any(feature = "barrel-full", feature = "barrel-sqlite"))]
//! use naphtha::barrel::{types, DatabaseSqlMigration, Migration};
//!
Expand Down Expand Up @@ -86,9 +95,11 @@
//! }
//! }
//!
//! // do not implement custom changes before and after the update transaction
//! // do not implement custom changes before and after the transactions
//! // to the database.
//! impl naphtha::DatabaseUpdateHandler for Person {}
//! impl<T> naphtha::DatabaseUpdateHandler<T> for Person {}
//! impl<T> naphtha::DatabaseRemoveHandler<T> for Person {}
//! impl<T> naphtha::DatabaseInsertHandler<T> for Person {}
//!
//! #[cfg(any(
//! feature = "barrel-full",
Expand Down

0 comments on commit 26375a8

Please sign in to comment.