Documentation ¶
Index ¶
Constants ¶
View Source
const ( DDL = iota + 1 DML )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQL ¶
type SQL interface { NewDDL() ddl.Service NewDML() dml.Service SelectDB(name string) error GetSelectedDB() string // contains filtered or unexported methods }
func NewSQLBuilder ¶
NewSQLBuilder constructor for the SQLBuilder
type SQLBuilder ¶
SQLBuilder struct expos the different type of sql query
func (*SQLBuilder) GetSelectedDB ¶
func (s *SQLBuilder) GetSelectedDB() string
GetSelectedDB function used to get the selected database.
func (*SQLBuilder) NewDDL ¶
func (s *SQLBuilder) NewDDL() ddl.Service
NewDDL function is entry point for the DDL(Data Definition Language)
func (*SQLBuilder) NewDML ¶
func (s *SQLBuilder) NewDML() dml.Service
NewDML function is entry point for the DML(Data Manipulation Language)
func (*SQLBuilder) SelectDB ¶
func (s *SQLBuilder) SelectDB(name string) error
SelectDB function used to select the database.
Click to show internal directories.
Click to hide internal directories.