Переглянути джерело

merge go-std-postgresql into go-std

INADA Naoki 9 роки тому
батько
коміт
7a58db9b87

+ 0 - 26
frameworks/Go/go-std-postgresql/benchmark_config.json

@@ -1,26 +0,0 @@
-{
-  "framework": "go-std-postgresql",
-  "tests": [{
-    "default": {
-      "setup_file": "setup",
-      "db_url": "/db",
-      "query_url": "/queries?queries=",
-      "fortune_url": "/fortune",
-      "update_url": "/update?queries=",
-      "port": 8080,
-      "approach": "Realistic",
-      "classification": "Platform",
-      "database": "Postgres",
-      "framework": "go",
-      "language": "Go",
-      "orm": "Raw",
-      "platform": "Go",
-      "webserver": "None",
-      "os": "Linux",
-      "database_os": "Linux",
-      "display_name": "go-std-postgresql",
-      "notes": "",
-      "versus": "go"
-    }
-  }]
-}

+ 0 - 7
frameworks/Go/go-std-postgresql/setup.sh

@@ -1,7 +0,0 @@
-#!/bin/bash
-
-fw_depends go
-
-go get ./...
-
-go run src/hello/hello.go &

+ 0 - 3
frameworks/Go/go-std-postgresql/source_code

@@ -1,3 +0,0 @@
-./go/src/
-./go/src/hello
-./go/src/hello/hello.go

+ 21 - 0
frameworks/Go/go-std/benchmark_config.json

@@ -88,6 +88,27 @@
       "display_name": "go-mongodb",
       "notes": "mongodb implementation for go net/http",
       "versus": "go"
+    },
+    "postgres": {
+      "setup_file": "setup",
+      "db_url": "/db",
+      "query_url": "/queries?queries=",
+      "fortune_url": "/fortune",
+      "update_url": "/update?queries=",
+      "port": 8080,
+      "approach": "Realistic",
+      "classification": "Platform",
+      "database": "Postgres",
+      "framework": "go",
+      "language": "Go",
+      "orm": "Raw",
+      "platform": "Go",
+      "webserver": "None",
+      "os": "Linux",
+      "database_os": "Linux",
+      "display_name": "go-postgresql",
+      "notes": "",
+      "versus": "go"
     }
   }]
 }

+ 0 - 0
frameworks/Go/go-std-postgresql/src/hello/hello.go → frameworks/Go/go-std/hello_postgres.go


+ 7 - 0
frameworks/Go/go-std/setup_postgres.sh

@@ -0,0 +1,7 @@
+#!/bin/bash
+
+fw_depends go
+
+go get github.com/lib/pq
+
+go run hello_postgres.go &

+ 1 - 0
frameworks/Go/go-std/source_code

@@ -1,2 +1,3 @@
 ./hello_mysql.go
 ./hello_mongo.go
+./hello_postgres.go