Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hal-wang/sqless
一个客户端安全操作数据库的解决方案。全栈开发者福利!
https://github.com/hal-wang/sqless
asp-net-core cs csharp mssql mvc sql sqless sqlserver webapi wpf
Last synced: 1 day ago
JSON representation
一个客户端安全操作数据库的解决方案。全栈开发者福利!
- Host: GitHub
- URL: https://github.com/hal-wang/sqless
- Owner: hal-wang
- License: mit
- Created: 2020-08-25T03:27:44.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-04T09:27:50.000Z (over 2 years ago)
- Last Synced: 2024-11-03T08:33:58.654Z (13 days ago)
- Topics: asp-net-core, cs, csharp, mssql, mvc, sql, sqless, sqlserver, webapi, wpf
- Language: C#
- Homepage: https://sqless.hal.wang
- Size: 1.02 MB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
_详细介绍请查看文档: _
**一个客户端安全操作数据库的解决方案**
- 高效: Sqless 使客户端能够安全地操作数据库,而不必在编写客户端同时编写 API。全栈程序员福利!
- 安全:严格的权限控制允许用户读写特定内容,而不必担心数据库安全性。
- 简单:无需 SQL 语句,配置简单。CS 架构只需要简单的配置 WebAPI 。### 示例
_SELECT_
```CSharp
var request = new SqlessSelectRequest()
{
Table = "User",
Fields = new List()
{
new SqlessField() { Field = "Uid" },
new SqlessField() { Field = "Name" }
}
};var conStr = "Data Source=.;Initial Catalog=StoreTest;User ID=sa;Password=123456";
using Sqless sqless = new Sqless(SqlessConfig.GetAllowUnspecifiedConfig(conStr));
List users = await sqless.Select(request);
```