Commit f02a7d2a authored by Katharina Fey's avatar Katharina Fey 馃彺
Browse files

Adjust docs. Bumping version. Cleaning deps

parent 68b77993
[package]
name = "barrel"
version = "0.1.0-alpha.0"
version = "0.1.0"
description = "A powerful schema migration building API for Rust"
authors = ["Katharina Fey <kookie@spacekookie.de>"]
......@@ -14,8 +14,7 @@ categories = [ "database", "web-programming", "development-tools"]
keywords = ["sql", "database", "schema", "migration"]
[features]
default = ["diesel","dotenv"]
default = ["diesel"]
[dependencies]
diesel = { version = "1.0.0", features = ["postgres"], optional = true }
dotenv = { version = "^0.10", optional = true }
\ No newline at end of file
diesel = { version = "1.0.0", features = ["postgres"], optional = true }
\ No newline at end of file
......@@ -14,7 +14,6 @@
//! t.integer("plushy_sharks_owned");
//! });
//! println!("{}", sql.exec());
//! // create table "users" ("id" serial primary key, "username" varchar(255), "plushy_sharks_owned" int)
//! ```
//!
//! The above code, for example, will create a new table in the "public" schema, called "users"
......@@ -24,6 +23,16 @@
//! Barrel is designed to give you ease of use as well as power over how you write your
//! migrations and SQL schemas.
//!
//! ## Connect to Database
//!
//! Barrel uses the Diesel connections and currently only supports postgresql databases. To
//! create a connection, use the `Connector` module
//!
//! ```notest
//! let mut connection = Connector::<DieselPGSQL>::new("postgres://<username>:<password>@<server>/<database>");
//! connection.batch_exec(&migration);
//! ```
//!
//! Pull-Requests with more/ better documentation welcome 馃挌
#[cfg(feature = "default")]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment