GithubHelp home page GithubHelp logo

neonerd / puresql Goto Github PK

View Code? Open in Web Editor NEW
51.0 51.0 13.0 631 KB

ES6/7 ready SQL library for node.js inspired by Clojure's yesql

JavaScript 100.00%
functional koa koajs mssql mysql nodejs postgresql sql sqlite yesql

puresql's People

Contributors

dependabot[bot] avatar meekohi avatar neonerd avatar pedroprado010 avatar victorandree 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

puresql's Issues

How to use LIKE % :foo %

I can't see any supporting documentation around LIKE with MySQL. Does this library support that?

Transactions support (MSSQL)

I tried to create BEGIN TRANSACTION and COMMIT TRANSACTION queries and it works with sqlite and pg, but mssql automatically closes transaction after first query. Am I miss something or we need some explicit transactions support?

Tested both mssql 3.3.0 which defined as 'supported' and latest mssql package.

Parameter validations

If unexpected parameters are passed to the query, puresql fails with TypeError. Should be handled better.

pg adapter

Hey, I use pg, I took the mssql adapter changed
connection.Request().query
line and changed that to
connection.query
and it works for pg. could we include that in the source? I could do a pull request if you like.
Also I found it a bit difficult to know where puresql was looking for my .sql file. I figured it out, and perhaps I'm slow because I suck at referencing files system, but it might be good to add a little like about that in the docs.
Thanks let me know what you think
Raif

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.