コード例 #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
}