Trên GitHub, sqlitebrowser/go-dbhub đã đạt 18 sao, ngôn ngữ Go. A Go library for accessing and using SQLite databases on DBHub.io
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
// Run the `Tables()` function on the new API object
tables, err := db.Tables("justinclift", "Join Testing.sqlite", dbhub.Identifier{Branch: "master"})
if err != nil {
log.Fatal(err)
}
// Display the retrieved list of tables
fmt.Println("Tables:")
for _, j := range tables {
fmt.Printf(" * %s\n", j)
}
Output
Tables:
* table1
* table2
Run a SQL query on a remote database
// Do we want to display BLOBs as base64?
showBlobs := false
// Run the query
result, err := db.Query("justinclift", "Join Testing.sqlite",
dbhub.Identifier{ Branch: "master" }, showBlobs,
`SELECT table1.Name, table2.value
FROM table1 JOIN table2
USING (id)
ORDER BY table1.id`)
if err != nil {
log.Fatal(err)
}
fmt.Printf("Query results (JSON):\n\t%v\n", result)
fmt.Println()
Generate and display the difference between two commits of a remote database
// The databases we want to see differences for
db1Owner := "justinclift"
db1Name := "Join Testing.sqlite"
db1Commit := dbhub.Identifier{
CommitID: "c82ba65add364427e9af3f540be8bf98e8cd6bdb825b07c334858e816c983db0" }
db2Owner := ""
db2Name := ""
db2Commit := dbhub.Identifier{
CommitID: "adf78104254ece17ff40dab80ae800574fa5d429a4869792a64dcf2027cd9cd9" }
// Create the diff
diffs, err := db.Diff(db1Owner, db1Name, db1Commit, db2Owner, db2Name, db2Commit,
dbhub.PreservePkMerge)
if err != nil {
log.Fatal(err)
}
// Display the diff
fmt.Printf("SQL statements for turning the first commit into the second:\n")
for _, i := range diffs.Diff {
if i.Schema != nil {
fmt.Printf("%s\n", i.Schema.Sql)
}
for _, j := range i.Data {
fmt.Printf("%s\n", j.Sql)
}
}
Output
SQL statements for turning the first commit into the second:
CREATE VIEW joinedView AS
SELECT table1.Name, table2.value
FROM table1 JOIN table2
USING (id)
ORDER BY table1.id;
Further examples
SQL Query - Run a SQL query, return the results as JSON
List databases - List the databases present in your account
List tables - List the tables present in a database
List views - List the views present in a database
List indexes - List the indexes present in a database
Retrieve column details - Retrieve the details of columns in a table
List branches - List all branches of a database
List releases - Display the releases for a database
List tags - Display the tags for a database
List commits - Display the commits for a database
Generate diff between two revisions - Figure out the differences between two databases or two versions of one database
Upload database - Upload a new database file
Download database - Download the complete database file
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/sqlitebrowser/go-dbhub là nguồn chính thức.
sqlitebrowser/go-dbhub có bao nhiêu sao?
sqlitebrowser/go-dbhub có 18 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/sqlitebrowser/go-dbhub. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
sqlitebrowser/go-dbhub có phải mã nguồn mở không?
Có — sqlitebrowser/go-dbhub phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/sqlitebrowser/go-dbhub.
sqlitebrowser/go-dbhub có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho sqlitebrowser/go-dbhub. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
sqlitebrowser/go-dbhub có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho sqlitebrowser/go-dbhub. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
sqlitebrowser/go-dbhub còn đang phát triển không?
Commit gần nhất trên sqlitebrowser/go-dbhub là 2.6 năm trước (theo timestamp GitHub). Repo có 12 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về go-dbhub?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về go-dbhub.