SECSql

package module
v0.0.0-...-0d2fd8f Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2019 License: AGPL-3.0 Imports: 3 Imported by: 2

README

SECSql

database manager Suitable for multiple databases

go get github.com/404SEC/SECSql

test code

package main

import (
	"fmt"

	SECSql "github.com/404SEC/SECSql"
)

func main() {

	DB := SECSql.Ini("mysql", "root:123456@tcp(127.0.0.1:3306)/BDP?charset=utf8")
	a, err := DB.ExecOnece("use mysql;\r\nselect * from user")
	if err != nil {
		fmt.Println(err.Error())
	}
	fmt.Println(a)
}

Apply to : mysql,mssql, sqlite3, oracle, postgres, hive

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SECSql

type SECSql struct {
	Typ  string
	Conn string
}

func Ini

func Ini(typ string, conn string) SECSql

func (*SECSql) ExecOnece

func (SECSql *SECSql) ExecOnece(Execstr string) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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