項目 | スキーマファースト | コードファースト |
---|---|---|
公開時期 | 2016年~ | 2018年~ |
スキーマ定義とリゾルバーが分離するか | 分離する | 分離しない |
GraphQLスキーマをモジュール化できるか | しにくい | しやすい |
GraphQLスキーマ定義の再利用 | しにくい | しやすい |
IDEのサポート | 受けにくい | 受けやすい |
サーバー開発とクライアント開発の順序 | 並行して着手できる | サーバー開発から着手 |
大規模なスキーマの継続開発 | しにくい | しやすい |
スキーマ定義の把握しやすさ | SDLを読むことで把握しやすい | コードにはリゾルバも含まれるため把握しづらい |
ariadne | graphene | strawberry | tartiflette | |
---|---|---|---|---|
Apollo Federation対応 | ○ | ○ | ○ | ○ |
コードファースト or スキーマファースト | スキーマファースト | コードファースト | コードファースト | スキーマファースト |
スター数 | 1.5k | 6.8k | 1.2k | 781 |
イシュー数 | 41 | 100 | 99 | 6 |
バージョン | 0.13.0 | v2.1.9 | v0.79.0 | v1.4.0 |
コントリビュート #1 | rafalp @Wrocław | syrusakbary @San Francisco | patrick91 @London | Maximilien-R @Paris |
1st commit | 2018-07-09 | 2015-09-24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/sha256" | |
"fmt" | |
"io" | |
"log" | |
"os" | |
"runtime" | |
"runtime/trace" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i = i + 1 | |
print("hoge") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$config = array( | |
'key' => 'XXX', | |
'secret' => 'XXX', | |
'region' => "XXX" | |
); | |
$client = Aws::factory($config)->get('dynamodb'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import MySQLdb | |
import datetime | |
def row_count(table_name): | |
global g_cur | |
g_cur.execute('select count(*) from ' + table_name) | |
one = g_cur.fetchone() | |
return one[0] | |
def is_exist_created_at_column(table_name): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#how to use, mysql -u DBUSERNAME -p -e 'show variables' |perl mycnf_check.pl | |
use strict; | |
my @THREAD_BUFFER_KEY = qw( | |
join_buffer_size | |
read_buffer_size | |
read_rnd_buffer_size | |
sort_buffer_size | |
); | |
my @GLOBAL_BUFFER_KEY = qw( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import re | |
from urlparse import urlparse | |
vcs_floor_work_path = "/path/vcs_floor_work_path"; | |
if os.path.isdir(vcs_floor_work_path) == False: | |
os.makedirs(vcs_floor_work_path); | |
repos_path = "http://example.com/svn/path/"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
#how to use, mysqldumpslow mysql-slow.log > hoge | |
# php MysqldumpslowResult2Csv hoge > hoge.csv | |
$log_filename = $argv[1]; | |
echo 'Count, Time, Time(total), Lock, Lock(total), Rows, Rows(total), Src, SQL'."\n"; | |
if (file_exists($log_filename)) | |
{ | |
$contents = file_get_contents($log_filename); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#how to use, mysql -u DBUSERNAME -p -e 'show variables' |perl mycnf_check.pl | |
use strict; | |
my @THREAD_BUFFER_KEY = qw( | |
join_buffer_size | |
read_buffer_size | |
read_rnd_buffer_size | |
sort_buffer_size | |
); | |
my @GLOBAL_BUFFER_KEY = qw( |
NewerOlder