Git Product home page Git Product logo

deuterium's Introduction

What is Deuterium?

Build Status

Deuterium is a fancy SQL builder for Rust. It's designed to provide a DSL to easily build SQL queries in safe and typed way.

Like Rust itself, Deuterium is still in the early stages of development, so don't be surprised if APIs change and things break. If something's not working properly, file an issue or submit a pull request!

# Cargo.toml
[dependencies.deuterium]
git = "https://github.com/deuterium-orm/deuterium"

Examples?

We have a lot! See tests for examples.

deuterium's People

Contributors

gsingh93 avatar palfrey avatar s-panferov avatar skylerlipthay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deuterium's Issues

"From" struct clashes with builtins

In order to get anything sensibly working, I've been doing use deuterium::*;, but that then breaks any code that works with the builtin From trait (e.g. error-chain). This should get renamed to something that doesn't clash with the standard library.

Feature: documentation

Hello,

I am considering using deuterium for my project, but it is difficult to evaluate as there is no documentation. It would be nice if there was documentation to see what features deuterium has.

Thanks for considering!

How to use placeholders in where clauses?

Looking at some examples, I can see how to build a query with placeholders, but I don't see how to actually fill in those place holders. It looks like I need to make a new SqlContext that wraps an SqlAdapter, and I can construct new, empty ones, but can I use the values I already supplied in the where clause?

Unrelated question, does this only work for postgres or should this work for any SQL implementation?

Update for beta

Hi, I'd like to try deuterium out but it's not currently building. The rust beta release is about to be released, now would be a good time to fix any build errors.

Using optional rust-postgres features without specifying them in Cargo.toml

Compilation of deuterium itself currently fails because the rustc-serialize and time features of rust-postgres are not specified in the Cargo.toml, but their postgres::types::ToSql implementation is depended upon.

Users of deuterium can work around the issue by specifying a dependency on rust-postgres and specifying the features themselves, but it would seem that either deuterium should either specify all of the features of the postgres dependency in its Cargo.toml or there should be equivalent rustc-serialize and time features in deuterium.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.