|
@@ -40,7 +40,7 @@ func Connect(server, login, mdp, base string) (*sql.DB, error) {
|
|
|
|
|
|
|
|
/* Insert
|
|
/* Insert
|
|
|
@parameter table string
|
|
@parameter table string
|
|
|
-@parameter column []string (optional is nil)
|
|
|
|
|
|
|
+@parameter column []string (optional is nil (INSERT INTO table VALUES ( , , ,)))
|
|
|
@parameter values []string
|
|
@parameter values []string
|
|
|
@return error
|
|
@return error
|
|
|
*/
|
|
*/
|
|
@@ -167,7 +167,7 @@ func (s *SQL) UpdateAND(table string, sets [][]string, wheres [][]string) error
|
|
|
/*
|
|
/*
|
|
|
SelectAND
|
|
SelectAND
|
|
|
@parameter table string
|
|
@parameter table string
|
|
|
-@parameter colvals [][]string (Each line is combined with AND)
|
|
|
|
|
|
|
+@parameter colvals [][]string (Each line is combined with AND) (optional is nil (SELECT * FROM table;))
|
|
|
@return [column][row]string, error
|
|
@return [column][row]string, error
|
|
|
*/
|
|
*/
|
|
|
func (s *SQL) SelectAND(table string, colvals [][]string) ([][]string, error) {
|
|
func (s *SQL) SelectAND(table string, colvals [][]string) ([][]string, error) {
|