모의 데이터 생성 도구? [닫은]
테스트 데이터베이스에로드 할 목적으로 샘플 데이터를 생성 할 수있는 좋은 무료 도구에 대한 권장 사항을 찾고 있습니다. 비유하면 모든 RDBMS에 대해 " lorem ipsum "텍스트를 생성하는 것입니다 . 내가 찾고있는 기능은 다음과 같습니다.
- 기존 테이블 정의에 대한 데이터를 생성하는 유연성.
- 크고 작은 데이터 세트를 생성하는 기능 (> 100 만 행 이상).
- SQL 스크립트 형식 (
INSERT
문) 또는 대량 가져 오기에 적합한 플랫 파일 형식 (일반적으로 더 빠름)으로 생성합니다. - 쉬운 스크립팅을위한 명령 줄 인터페이스.
- 동적 언어로 작성된 확장 가능한 오픈 소스 (강력한 요구 사항이 아니라 가지고있는 것이 좋습니다).
추신 : StackOverflow에서 중복 질문을 검색했지만 찾지 못했습니다. 하나 있으면 그것에 대한 포인터를 얻을 수 있으면 감사하겠습니다.
모두에게 좋은 답변 감사합니다! Windows가 아닌 Mac OS X를 기본 개발 환경으로 사용하라는 요구 사항을 수정해야합니다 (명령 줄 인터페이스가 바람직하다고 말했지만 실제로 Windows를 배제합니다). Windows 관련 제안은 의심 할 여지없이이 질문의 다른 독자에게 유용 할 것이므로 감사합니다.
내 결론은 다음과 같습니다.
- GenerateData :
- 명령 줄이 아닌 PHP 웹 앱 인터페이스
- 200 개의 레코드 생성으로 제한됨 (또는 5,000 개의 레코드 생성에 대한 라이센스로 $ 20 지불)
- RedGate SQL 데이터 생성기
- 무료가 아님, 가격 $ 295
- Windows, .NET, SQL Server 필요
- Visual Studio 2008 데이터베이스 에디션
- Windows 필요
- 값 비싼 MSDN 또는 ISV 구독 필요
- 배너 Datadect
- 무료 아님, 가격 $ 595
- Windows (?) 필요
- MySQL (?)을 지원하지 않습니다.
- GUI, 명령 줄 또는 스크립트 불가능
- 루비 페이 커 보석
- 대량 데이터로드에 ActiveRecord를 사용하기에는 너무 느립니다.
- 슈퍼 스맥
- 주로 랜덤 데이터 생성기가 내장 된 부하 테스트 도구
- 그럼에도 불구하고 사용하기 매우 간단합니다.
- 전반적으로 좋은 2 위 도구
- Databene Benerator
- 내 요구에 가장 적합한 솔루션
- DbUnit과 호환되는 XML 스크립트
- 오픈 소스 (GPL) 자바 코드
- 명령 줄 사용법
- JDBC를 통해 직접 많은 데이터베이스에 액세스
요구 사항에 근접한 테스트 데이터 생성기 인 databene benerator를 살펴보십시오 .
- 기존 테이블 정의에 대한 데이터를 생성 할 수 있습니다 (또는 프로덕션 데이터를 익명화 할 수도 있음).
- 대용량 데이터 세트 생성 가능 (무제한 크기)
- 다양한 입력 (CSV, 플랫 파일, DBUnit) 및 출력 형식 (CSV, 플랫 파일, DBUnit, XML, Excel, 스크립트)을 지원합니다.
- 명령 줄 또는 메이븐 플러그인을 통해 사용할 수 있습니다.
- 오픈 소스이며 사용자 정의 가능
나는 그것을 시도 할 것입니다.
유사한 제품 목록 인 BTW 는 databene benerator의 웹 사이트에서 확인할 수 있습니다.
이것은 매우 유망 해 보입니다 : generatedata.com . 오픈 소스에는 많은 기본 제공 데이터 유형이 있습니다.
여기에 몇 가지 다른 목록이 있습니다. 테스트 (샘플) 데이터 생성기 . 나는 그들 중 어느 누구도 경험이 없지만 그 목록에있는 몇 가지가 꽤 괜찮은 것처럼 보입니다.
이것은 우리 회사가 자체 응용 프로그램을 테스트하는 데 도움이되도록 만든 도구입니다. 누구나 무료로 사용할 수 있습니다. 기본적으로 웹 앱을 둘러싼 포 저리 루비 보석입니다. CSV, txt 또는 SQL 형식으로 데이터를 생성 할 수 있습니다. 도움이 되었기를 바랍니다.
나는 당신이 무료 도구를 찾고 있다고 말한 것을 알고 있지만, 이것은 295 달러를 지출하면 절약 된 시간에 빨리 당신에게 갚을 것이라고 제안하는 한 가지 사례입니다. 저는 작년에 RedGate 도구 SQL 데이터 생성기 를 사용해 왔으며 짧게 말하면 멋진 도구입니다. 열 간의 종속성을 설정하고 전화 번호, URL, 이름 등과 같은 비즈니스 개체에 대한 현실적인 데이터를 생성 할 수 있습니다.이 도구가 몇 번이고 비용을 지불했다고 솔직히 말할 수 있습니다.
If you are looking or willing to use something MySQL-specific, you could take a look at Super Smack. It is currently maintained by Tony Bourke.
Super Smack allows you to generate random data to insert into your database tables. It is customizable, allowing you to use the packaged words.dat file, or any test data of your choice.
One of the nice things about it is that it is command-line is highly customizable. There is some fairly decent examples of usage in the book High Performance MySQL which is also excerpted here.
Not sure if that is along the lines of what you are looking for, but just a thought.
A Ruby script with one of the available fake data generators should do you just fine.
http://faker.rubyforge.org/ is one such gem. Unfortunately, this doesn't fulfill all your requirements.
Here is another: http://random-data.rubyforge.org/
And a tutorial for using Faker: http://www.rubyandhow.com/how-to-generate-fake-names-addresses-in-ruby/
RE: Flexibility to generate data for an existing table definition. Combine the Faker gem with one of the available ORMs. ActiveRecord would probably be easiest.
Normally very costly, but if you are a small ISV you can get Visual Studio 2008 Database Edition very cheaply, see the empower and bizspark promotions. It provides a lot more functionality then just generating test data (Integration with SCC, Unit Testing, DB Refactoring, etc.)
As I like the fact that Red-Grate tools are so easy to learn, I would still look at SQL Data Generator
a tool that really should not be missing from the list is the Data Generator from Datanamic that populates databases directly or generates insert scripts, has a large collection of pre-installed generators ( and supports multiple databases...
http://www.datanamic.com/datagenerator/index.html
I know you're not looking for actual lorem ipsum text; but in case anyone else searches for an actual lorem ipsum generator and finds this thread: lipsum.com does a great job of it.
Not free, but Visual Studio 2008 Database Edition is a good alternative and it provides a lot more functionality (Integration with SCC, Unit Testing, DB Refactoring, etc...)
I use a tool called Datatect:
- Generates data to flat files or any ODBC compliant database.
- Extensible via VBScript.
- Referentially aware; will populate foreign keys with values from parent table.
- Data is context aware; city, state and phone numbers for given zip codes, first names and titles with gender.
- Can create custom, complex data types.
- Generate over 2 billion proper names, business names, street addresses, cities, states, and zip codes.
I've used this tool to generate as many as 40,000,000 rows of data to a SQLServer database, and 8,000,000 rows of data to an Oracle database.
I am in no way affiliated with Banner Systems, just a satisfied customer.
Here is the list of such tools (both free and commercial): http://c2.com/cgi/wiki?TestDataGenerator
For OS X there is Data Creator (US $ 7). Download is free for test purpose. You can use it to evaluate the software and its features.
It requires OS X Lion or successive. It can generate a lot of different field type and has a custom export mode plus some pre-set (TSV, CSV, Html table, web page with table inside).
http://www.tensionsoftware.com/osx/datacreator/
here at the App Store:
https://itunes.apple.com/us/app/data-creator/id491686136?mt=12
You can use DbSchema, www.dbschema.com it's a database management tool and it has a Random Data Generator to populate your database.
Not direct answer to your question but this can be helpful for certain kind of data :
Fake Name Generator can be useful - http://www.fakenamegenerator.com/ , not for everything but user accounts or stuff like that. AFAIK They provide support for bulk order.
+1 for Benerator: I tried 3 or 4 of the other tools on offer (including dbmonster) but found Benerator to be very quick, to deliver realistic data and to be flexible. I also got very quick & helpful feedback from the tool's creator when I posted on the forum.
참고URL : https://stackoverflow.com/questions/591892/tools-for-generating-mock-data
'programing tip' 카테고리의 다른 글
의사 TTY 할당이란 무엇입니까? (0) | 2020.08.14 |
---|---|
명시 적으로 지정하거나 오버로드를 사용하지 않고 서명에 선택적 인수가있는 메서드를 어떻게 Moq합니까? (0) | 2020.08.14 |
WebRTC-확장 가능한 라이브 스트림 방송 / 멀티 캐스팅 (0) | 2020.08.14 |
MVC Razor 동적 모델, '개체'에 'PropertyName'에 대한 정의가 포함되어 있지 않습니다. (0) | 2020.08.13 |
모든 기존 필드를 포함하고 문서에 새 필드 추가 (0) | 2020.08.13 |