Giter VIP home page Giter VIP logo

awesome-sql-builder's People

Contributors

cdroulers 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

awesome-sql-builder's Issues

Does it use parameter binding?

The where clause is string with field name, operator and value all in one string. Does It uses parameter binding to protect my application against SQL injection attacks?

Or there is need to clean strings being passed? Ideally it should be
Where("FieldName", Equal.To, "Some value")

Source for Awesome.Data.Sql.Builder.OData?

Hello!

This is not exactly a code issue, more like a project one.

You mentioned Awesome.Data.Sql.Builder.OData, and the nuget package for it links to this repo, but I don't see the source for it anywhere.
Is it not public for some reason, or is it just hard to find?

Discontinued?

Hello,

the last commit is almost 2 years ago, are there any plans to continue this project?

UPDATE statement

var statement = SqlStatements.Update(new[] { "Name", "Email" })
    .Table("Users");

var sql = statement.ToSql();

Assert.That(
    sql,
    SqlCompareConstraint.EqualTo(@"UPDATE Users
SET
    Name = @Name,
    Email = @Email")

INSERT statement

var statement = SqlStatements.Insert(new[] { "Name", "Email" })
    .Into("Users")
    .FromValues();

var sql = statement.ToSql();

Assert.That(
    sql,
    SqlCompareConstraint.EqualTo(@"INSERT INTO Users
(
    Name,
    Email
)
VALUES
(
    @Name,
    @Email
)")

Probably add something like .FromSelect(SelectStatement select)!

DELETE statement

var statement = SqlStatements.Delete()
    .From("Users")
    .Where("IsCool = TRUE")
    .Where("Name LIKE @Query");

var sql = statement.ToSql();

Assert.That(
    sql,
    SqlCompareConstraint.EqualTo(@"DELETE FROM Users
WHERE
    u.IsCool = TRUE AND
    u.Name LIKE @Query")

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.