예제 #1
0
파일: pg.go 프로젝트: oibore/github-Traning
func Exec(conn unsafe.Pointer, command string) unsafe.Pointer {
	res := C.PgExec(conn, C.CString(command))
	return res
}
예제 #2
0
파일: pg.go 프로젝트: runderwood/go-pg
func Exec(conn unsafe.Pointer, command string) *PgResults {
	res := new(PgResults)
	res.result = C.PgExec(conn, C.CString(command))
	res.row = 0
	return res
}