Documentation ¶
Overview ¶
Package sqlcgeneratecrud provides a set of utilities for generating CRUD SQL statements such as INSERT, SELECT, UPDATE and DELETE.
Source code and other details for the project are available at GitHub:
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(data interface{}, option *GenerateConfig) error
Generate generates CRUD SQL statements for the given data using the specified options. It returns an error if any error occurs during the generation process.
Types ¶
type GenerateConfig ¶
type GenerateConfig struct { TagFormat string // The tag format to use for struct field tags (default: "json"). PathTarget int // The target path for the generated SQL files (default: 0). }
GenerateConfig represents the configuration options for generating CRUD SQL statements.
Click to show internal directories.
Click to hide internal directories.