Giter Site home page Giter Site logo

mishael-o / dapper.simplesqlbuilder Goto Github PK

View Code? Open in Web Editor NEW
39.0 1.0 5.0 475 KB

A simple SQL builder for Dapper using string interpolation and fluent API for building safe static and dynamic SQL queries.

Home Page: https://mishael-o.github.io/Dapper.SimpleSqlBuilder/

License: MIT License

C# 100.00%
dapper sql sql-builder simple-sql-builder dapper-simple-sql-builder interpolated-strings dapper-sql-builder dotnet csharp sql-query

dapper.simplesqlbuilder's People

Contributors

jamesryanbell avatar mishael-o 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

Watchers

 avatar

dapper.simplesqlbuilder's Issues

Any plans to separate the fluent APIs into a standalone project?

Feature request type

Other

Is your feature request related to a problem?

Can Normal Builder and Fluent Builder be published projects to NuGet package separately as two projects? I think sometimes people just want to use Normal Builder.

Describe the solution you would like

Publish Normal Builder and Fluent Builder as standalone NuGet package.

Describe alternatives you have considered

No response

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

Does it have bulk insert or update?

Feature request type

Performance improvement

Is your feature request related to a problem?

No response

Describe the solution you would like

Does it have bulk insert or update? Can you give me an examlple?

Describe alternatives you have considered

No response

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

ODBC parameter support

Feature request type

New feature

Is your feature request related to a problem?

This is a super cool library! I was just playing around with it and found that it doesn't seem to work for ODBC data sources. I know it's an older technology so I understand if it ends up being a won't fix. The way it treats parameters is very ugly, using ? with no differentiation between parameters. Sadly the way your library generates queries ends up being incompatible.

Describe the solution you would like

Perhaps an option could be added for ODBC support: SimpleBuilderSettings.Configure(parameterOdbcFormatting: true);

Then when the query is generated instead of inserting @p0, @p1, etc. it uses ?, ?, etc. I only took a brief look at the code so I don't know how how simple this actually would end up being in practice.

Describe alternatives you have considered

SimpleBuilderSettings.Configure(parameterNameTemplate: string.Empty, parameterPrefix: "?"); is actually pretty close although I'm not sure the string.Empty is being respected. Regardless, the appended numbers will still cause a problem.

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

Dapper?

Feature request type

Other

Is your feature request related to a problem?

No response

Describe the solution you would like

I stumbled upon your library and have a simple question, does your library even need dapper that much? it looks like you only use DynamicParameters wouldn't it make more sense to have a small library like Dapper.SimpleSqlBuilder.Integration which implicitly converts from YourDynamicParameters to Dapper's DynamicParameters? your library basically is so good that it should not be tied to dapper ;)

Describe alternatives you have considered

No response

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

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.