1.0.3 • Published 7 months ago
nuclea-sql v1.0.3
Example Usage
const { nusql } = require('nuclea-sql');
const query = nusql()
.select('*')
.from('users')
.where('age', '>', 25)
.limit(10)
.offset(0)
.build();
const connect = db.query
try{
console.log(connect['rows'])
}
catch(e){
console.error(e)
}
console.log(query);
// Output: SELECT * FROM users WHERE age > 25 LIMIT 10 OFFSET 0
Nuclea-SQL's concise and readable syntax empowers developers to build complex queries without sacrificing readability.
Getting Started
To start using Nuclea-SQL in your Nuclea-powered project, follow these simple steps:
- Installation: Install Nuclea-SQL as a dependency in your Node.js project using npm or yarn:
npm install nuclea-sql
- Import: Import Nuclea-SQL into your project and start building SQL queries with ease:
const { nusql } = require('nuclea-sql');
- Documentation: Explore the comprehensive Nuclea-SQL Documentation for detailed usage instructions, examples, and advanced features.
Contributing
We welcome contributions! If you'd like to contribute to this sql builder or report issues, please check our Contribution Guidelines.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Thanks to the github community for their valuable contributions.
If you find the nuclea-sql helpful, please consider giving it a ⭐️ on GitHub!
Happy coding! 🔥