用于生成模拟数据的工具? [英] Tools for Generating Mock Data?

查看:460
本文介绍了用于生成模拟数据的工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个推荐的免费免费工具,用于生成示例数据以加载到测试数据库中。以此类推,可以为任何RDBMS生成 lorem ipsum 文本。我要寻找的功能包括:

I'm looking for recommendations of a good, free tool for generating sample data for the purpose of loading into test databases. By analogy, something that produces "lorem ipsum" text for any RDBMS. Features I'm looking for include:


  • 可以灵活地为现有表定义生成数据。

  • 一百万行或更多)的能力。
  • 以SQL脚本格式生成( INSERT 语句),也可以采用适合批量导入的平面文件格式(通常更快)。

  • 用于轻松编写脚本的命令行界面。

  • 可扩展的开放源代码,以动态语言编写(这些功能很不错,但要求不强)。

  • Flexibility to generate data for an existing table definition.
  • Ability to generate small and large data sets (> 1 million rows or more).
  • Generate in SQL script format (INSERT statements) or else in a flat file format suitable for bulk import (which is usually faster).
  • A command-line interface for easy scripting.
  • Extensible, open source, written in a dynamic language (these are nice-to-haves, not strong requirements).

PS:我确实在StackOverflow上搜索了一个重复的问题,但我没有找到一个。如果有的话,我将不胜感激。

PS: I did search for a duplicate question on StackOverflow, but I didn't find one. If there is one, I'll be grateful to get a pointer to it.

感谢大家的好评!我应该修改我使用Mac OS X作为主要开发环境而不是Windows的要求(尽管我确实说命令行界面是可取的,并且实际上排除了Windows)。 Windows特定的建议无疑将对该问题的其他读者有用,所以,谢谢。

Thanks for the great responses everyone! I should amend my requirements that I use Mac OS X as my primary development environment, not Windows (though I did say command-line interface is desirable, and that practically rules out Windows). The Windows-specific suggestions will no doubt be useful to other readers of this question, though, so thanks.

这里是我的结论:


  • GenerateData:


    • PHP Web应用程序界面,不是命令行

    • 仅限于生成200条记录(或支付20美元的许可以生成5,000条记录)


    • 不是免费的,价格为$ 295

    • 需要Windows,.NET,SQL Server


    • 需要Windows

    • 需要昂贵的MSDN或ISV订阅


    • 不是免费的,价格$ 595

    • 需要Windows(?)

    • 不支持MySQL(?)

    • GUI,而不是命令行或可编写脚本的

    • not free, price $595
    • requires Windows (?)
    • no support for MySQL (?)
    • GUI, not command line or scriptable

    • 使用A的速度太慢ctiveRecord用于批量数据加载


    • 主要负载测试工具,内置有一个随机数据生成器

    • 使用起来还是很简单的

    • 总体来说是一个不错的亚军工具


    • 满足我需求的最佳解决方案

    • XML脚本,与DbUnit兼容

    • 开源(GPL)Java代码

    • 命令行用法

    • 直接通过JDBC访问许多数据库

    • best solution for my needs
    • XML scripts, compatible with DbUnit
    • open source (GPL) Java code
    • command-line usage
    • access many databases directly via JDBC

    推荐答案

    看看 databene benerator ,它是一种看起来很符合您要求的测试数据生成器。

    Take a look at databene benerator, a test data generator that looks close to your requirements.


    • 它可以为现有表定义生成数据(甚至匿名化生产数据)

    • 它可以生成大数据集(大小不受限制)

    • 它支持各种输入(CSV,平面文件,DBU nit)和输出格式(CSV,平面文件,DBUnit,XML,Excel,脚本)

    • 可以在命令行上使用,也可以通过maven插件使用

    • 它是开源且可自定义的

    • it can generate data for an existing table definition (or even anonymize production data)
    • it can generate larges data set (unlimited size)
    • it supports various input (CSV, Flat Files, DBUnit) and output format (CSV, Flat Files, DBUnit, XML, Excel, Scripts)
    • it can be used on the command line or through a maven plugin
    • it's open source and customizable

    我会尝试一下。

    BTW,类似产品的列表可在databene benerator的网站上找到网站。

    BTW, a list of similar products is available on databene benerator's web site.

    这篇关于用于生成模拟数据的工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆