struct2sql

package module
v0.0.0-...-95d4837 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 4 Imported by: 0

README

struct2sql

Struct2SQL 是一个开源的 Git 仓库,旨在简化 Go 语言中结构体与 SQL 数据库表之间的映射。这个仓库提供了一种利用结构体标签生成常见 SQL 查询语句(如 CREATE TABLE、INSERT、SELECT、UPDATE 和 DELETE)的方法。这有助于开发人员减少手动编写 SQL 语句的工作,提高了代码的可维护性和可读性。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert2DeleteSql

func Convert2DeleteSql(s interface{}) (sql string, data []interface{}, err error)

func Convert2InsertSql

func Convert2InsertSql(s interface{}) (sql string, data []interface{}, err error)

func Convert2SelectSql

func Convert2SelectSql(s interface{}) (sql string, data []interface{}, err error)

func Convert2UpdateSql

func Convert2UpdateSql(s interface{}) (sql string, data []interface{}, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL