You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SqlKata Query Builder is a powerful Sql Query Builder written in C#.
25
-
26
-
It's secure and framework agnostic. Inspired by the top Query Builders available, like Laravel Query Builder and Knex.
27
-
28
-
SqlKata has an expressive API. it follows a clean naming convention, which is very similar to the SQL syntax.
29
-
30
-
By providing a level of abstraction over the supported database engines, that allows you to work with multiple databases with the same unified API.
21
+
## 🚀 Introduction
31
22
32
-
SqlKata supports complex queries, such as nested conditions, selection from SubQuery, filtering over SubQueries, Conditional Statements and others. Currently, it has built-in compilers for SqlServer, MySql, PostgreSQL, and Firebird.
23
+
SqlKata Query Builder is a powerful SQL query builder written in C#. It is secure, framework-agnostic, and inspired by top query builders like Laravel Query Builder and Knex.
33
24
34
-
The SqlKata.Execution package provides the ability to submit the queries to the database, using [Dapper](https://github.com/StackExchange/Dapper) under the covers.
35
-
36
-
Checkout the full documentation on [https://sqlkata.com](https://sqlkata.com)
25
+
### ✨ Key Features
26
+
-**Expressive API**: Clean and intuitive syntax similar to SQL.
27
+
-**Database Agnostic**: Work with multiple databases using a unified API.
28
+
-**Complex Queries**: Supports nested conditions, subqueries, conditional statements, and more.
29
+
-**Execution Support**: Use the SqlKata.Execution package to execute queries with Dapper.
37
30
38
31
## Installation
39
32
@@ -42,48 +35,50 @@ $ dotnet add package SqlKata
42
35
$ dotnet add package SqlKata.Execution # (optional) If you want the execution support
43
36
```
44
37
45
-
46
38
## Quick Examples
47
39
48
40
### Setup Connection
49
41
50
42
```cs
51
43
varconnection=newSqlConnection("...");
52
44
varcompiler=newSqlCompiler();
53
-
54
-
vardb=newQueryFactory(connection, compiler)
45
+
vardb=newQueryFactory(connection, compiler);
55
46
```
56
-
57
47
> `QueryFactory` is provided by the SqlKata.Execution package.
@@ -159,16 +155,22 @@ int affected = db.Query("Users").Where("Id", 1).Delete();
159
155
```
160
156
161
157
## FAQ
158
+
162
159
### How to know when a new release or a feature is available?
163
-
I announce updates on My [Twitter Account](https://twitter.com/ahmadmuzavi), and you can subscribe to our newsletters from the website https://sqlkata.com
160
+
161
+
I announce updates on my [Twitter Account](https://twitter.com/ahmadmuzavi), and you can subscribe to our newsletters from the website [https://sqlkata.com](https://sqlkata.com).
164
162
165
163
### The database that I want is not supported. Why?
166
-
It's impossible to support all available database vendors, this is why we focus on the major ones, and we encourage you to create your own compiler for your database.
164
+
165
+
It's impossible to support all available database vendors, which is why we focus on the major ones. We encourage you to create your own compiler for your database.
167
166
168
167
### Do you accept new compilers?
169
-
Unfortunately, no, the reason is this will add overhead for the project contributors. We prefer to improve the quality of the existing compilers instead.
168
+
169
+
Unfortunately, no. The reason is that this would add overhead for the project contributors. We prefer to improve the quality of the existing compilers instead.
170
170
171
171
### How can I support the project?
172
-
- Star the project here in Github, and share it with your friends
173
-
- Follow and upvote it on Product Hunt <ahref="https://www.producthunt.com/products/sqlkata?utm_source=badge-follow&utm_medium=badge&utm_souce=badge-sqlkata"target="_blank"><imgsrc="https://api.producthunt.com/widgets/embed-image/v1/follow.svg?post_id=398417&theme=light&size=small"alt="SqlKata - Dynamic Sql query builder for dotnet | Product Hunt"style="width: 86px; height: 32px;"width="250"height="54" /></a>
174
-
- You can also donate to support the project financially on open collection.
172
+
173
+
- ⭐ Star the project here on GitHub, and share it with your friends.
0 commit comments