
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
github.com/sql-machine-learning/gomaxcompute
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
High CVE
MaxCompute, also known as ODPS, is a distributed storage service and SQL engine provided by Alibaba Cloud. This repository contains a Go SQLDriver of MaxCompute. If you are going to write a Go program that calls the standard library database/sql
to access MaxCompute databases, you could use this driver.
This project is in its early stage. Your issues and pull requests are very welcome!
This project is a driver that helps Go's standard database API talking to MaxCompute server. It has the following features:
Alibaba Cloud open sourced some client SDKs of MaxCompute:
This project is not an SDK.
Alibaba Cloud also provides ODBC/JDBC drivers:
This project is a Go's database/sql
driver.
Please make sure you have Go 1.6 or high release.
You can clone the source code by running the following command.
go get -u sqlflow.org/gomaxcompute
Here is a simple example:
package main
import (
"database/sql"
"sqlflow.org/gomaxcompute"
)
func assertNoError(e error) {
if e != nil {
panic(e)
}
}
func main() {
config := gomaxcompute.Config{
AccessID: "<access_id>",
AccessKey: "<access_key>",
Endpoint: "<end_point>",
Project: "<project_name>"}
db, e := sql.Open("maxcompute", config.FormatDSN())
assertNoError(e)
defer db.Close()
const sql = `SELECT
cast('1' AS BIGINT) AS a,
cast(TRUE AS BOOLEAN) AS b,
cast('hi' AS STRING) AS c,
cast('3.14' AS DOUBLE) AS d,
cast('2017-11-11 03:12:11' AS DATETIME) AS e,
cast('100.01' AS DECIMAL) AS f;`
rows, e := db.Query(sql)
assertNoError(e)
defer rows.Close()
for rows.Next() {
// do your stuff
}
}
Please be aware that to connect to a MaxCompute database, the user needs to provide
Our respect and thanks to Ruohang Feng, who wrote a Go SDK for MaxCompute when he worked in Alibaba, for his warm help that enabled this project.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.