{"id":26034,"date":"2014-12-18T22:23:10","date_gmt":"2014-12-18T13:23:10","guid":{"rendered":"http:\/\/www.softantenna.com\/wp\/?p=26034"},"modified":"2014-12-18T22:23:10","modified_gmt":"2014-12-18T13:23:10","slug":"fake2db","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/fake2db\/","title":{"rendered":"Fake2db - \u3082\u3063\u3068\u3082\u3089\u3057\u3044\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u3092\u4f5c\u308b\u4e8b\u304c\u3067\u304d\u308bPython\u30c4\u30fc\u30eb"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/12\/Ifake2db.png\" alt=\"Fake2db\" title=\"fake2db.png\" border=\"0\" width=\"546\" height=\"295\" \/><\/p>\n<p>\u958b\u767a\u6642\u306e\u610f\u5916\u3068\u624b\u9593\u306e\u304b\u304b\u308b\u4f5c\u696d\u3068\u3057\u3066\u3001\u30c6\u30b9\u30c8\u7528\u306e\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u3092\u6e96\u5099\u3059\u308b\u4f5c\u696d\u304c\u3042\u3052\u3089\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u7279\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3042\u308b\u7a0b\u5ea6\u306e\u91cf\u306e\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u3092\u6295\u5165\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3001\u305d\u306e\u4f5c\u696d\u306f\u3055\u3089\u306b\u9762\u5012\u304f\u3055\u3044\u3082\u306e\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3093\u306a\u3068\u304d\u983c\u308a\u306b\u306a\u308b\u30c4\u30fc\u30eb\u304c\u300c<a href=\"https:\/\/github.com\/emirozer\/fake2db\">Fake2db<\/a>\u300d\u3067\u3059\u3002Python\u88fd\u306e\u30c4\u30fc\u30eb\u3067\u3001Sqlite\u3001MySQL\u3001PostgreSQL\u3001MongoDB\u306b\u5bfe\u5fdc\u3057\u305f\u3082\u3063\u3068\u3082\u3089\u3057\u3044\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u3092\u7c21\u5358\u306b\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u672c\u4f53\u306fpip\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre>\npip install fake2db \n<\/pre>\n<p>\u3055\u3089\u306bDB\u3054\u3068\u306e\u30b3\u30cd\u30af\u30bf\u30fc\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002MySQL\u7528\u306e\u30b3\u30cd\u30af\u30bf\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u306a\u3044\u3068\u52d5\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<pre>\n pip install mysql-connector-python --allow-external mysql-connector-python\n<\/pre>\n<p>\u3053\u308c\u3067\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h3>SQLite\u306e\u30c7\u30fc\u30bf\u3092\u751f\u6210<\/h3>\n<p>\u3068\u308a\u3042\u3048\u305a\u8a66\u3057\u3066\u307f\u308b\u5834\u5408\u3001\u4e00\u756a\u7c21\u5358\u306a\u306e\u306fSQLite\u7528\u306e\u30c7\u30fc\u30bf\u3092\u4f5c\u3063\u3066\u307f\u308b\u3053\u3068\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre>\nfake2db --rows 200 --db sqlite \n<\/pre>\n<p>\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u300csqlite_XXXXX.db\u300d\u3068\u3044\u3046\u540d\u524d\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u3089\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2014\/12\/Isqlite.png\" alt=\"Sqlite\" title=\"sqlite.png\" border=\"0\" width=\"546\" height=\"328\" \/><\/p>\n<p>\u2191SQLite 3\u306eGUI\u7ba1\u7406\u30c4\u30fc\u30eb\u300c<a href=\"https:\/\/www.sqlitepro.com\/\">SQLite Professional<\/a>\u300d\u3067\u958b\u3044\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>companies\u3001customer\u3001detailed_registration\u3001simple_registration\u3001user_agent\u3068\u3044\u30465\u3064\u306e\u30c6\u30fc\u30d6\u30eb\u304c\u4f5c\u3089\u308c\u3001\u305d\u308c\u305e\u308c200\u884c\u305a\u3064\u30ec\u30b3\u30fc\u30c9\u304cINSERT\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002\u5b9f\u969b\u306e\u30c7\u30fc\u30bf\u3082\u3001\u540d\u524d\u3001emal\u30a2\u30c9\u30ec\u30b9\u3001\u96fb\u8a71\u756a\u53f7\u306a\u3069\u305d\u308c\u3063\u307d\u3044\u3082\u306e\u304c\u5165\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u884c\u6570\u3084\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u7a2e\u985e\u306f\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u4f5c\u6210\u3055\u308c\u308b\u30c6\u30fc\u30d6\u30eb\u540d\u306f\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4e2d\u3067\u76f4\u63a5\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u5b9f\u969b\u306e\u958b\u767a\u3067\u4f7f\u3046\u5834\u5408\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u6539\u9020\u3057\u3001\u9069\u5207\u306a\u30c6\u30fc\u30d6\u30eb\u540d\/\u5217\u540d\u306b\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u96db\u5f62\u3068\u3057\u3066\u306f\u4f7f\u3048\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093(\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3057)\u3002<\/p>\n<p><a href=\"https:\/\/news.ycombinator.com\/item?id=8761953\">Hacker News<\/a>\u3084\u3001<a href=\"http:\/\/www.reddit.com\/r\/programming\/comments\/2pkz91\/fake2db_generates_databases_filled_with_fake_but\/\">Reddit<\/a>\u3067\u306f\u305d\u306e\u4ed6\u306e\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u4f5c\u6210\u30c4\u30fc\u30eb\u306b\u95a2\u3059\u308b\u60c5\u5831\u3082\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u3061\u3089\u3082\u3042\u308f\u305b\u3066\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u958b\u767a\u6642\u306e\u610f\u5916\u3068\u624b\u9593\u306e\u304b\u304b\u308b\u4f5c\u696d\u3068\u3057\u3066\u3001\u30c6\u30b9\u30c8\u7528\u306e\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u3092\u6e96\u5099\u3059\u308b\u4f5c\u696d\u304c\u3042\u3052\u3089\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u7279\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u3042\u308b\u7a0b\u5ea6\u306e\u91cf\u306e\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u3092\u6295\u5165\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u5834\u5408\u3001\u305d\u306e\u4f5c\u696d\u306f\u3055\u3089\u306b\u9762\u5012\u304f\u3055\u3044\u3082\u306e\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":26032,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[75],"tags":[1414,703],"class_list":["post-26034","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-programming","tag-python"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/26034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=26034"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/26034\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/26032"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=26034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=26034"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=26034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}