Skip to content

Commit fa2ea5a

Browse files
authored
SQL test data generator project renamed into Quick SQL test data
1 parent 39c30bd commit fa2ea5a

File tree

75 files changed

+411
-422
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+411
-422
lines changed

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
# SQL test data generator
1+
# Quick SQL test data
22

3-
<a href="https://search.maven.org/artifact/org.quickperf/sql-test-data-generator">
4-
<img src="https://maven-badges.herokuapp.com/maven-central/org.quickperf/sql-test-data-generator/badge.svg"
3+
<a href="https://search.maven.org/artifact/org.quickperf/quick-sql-test-data">
4+
<img src="https://maven-badges.herokuapp.com/maven-central/org.quickperf/quick-sql-test-data/badge.svg"
55
alt="Maven Central">
66
</a>
77
&nbsp;&nbsp;
8-
<a href="https://github.com/quick-perf/sql-test-data-generator/blob/master/LICENSE.txt">
8+
<a href="https://github.com/quick-perf/quick-sql-test-data/blob/master/LICENSE.txt">
99
<img src="https://img.shields.io/badge/license-Apache2-blue.svg"
1010
alt = "License">
1111
</a>
1212
&nbsp;&nbsp;
13-
<a href="https://github.com/quick-perf/sql-test-data-generator/actions?query=workflow%3ACI">
14-
<img src="https://img.shields.io/github/workflow/status/quick-perf/sql-test-data-generator/CI"
13+
<a href="https://github.com/quick-perf/quick-sql-test-data/actions?query=workflow%3ACI">
14+
<img src="https://img.shields.io/github/workflow/status/quick-perf/quick-sql-test-data/CI"
1515
alt = "Build Status">
1616
</a>
1717
&nbsp;
18-
<a href="https://codecov.io/gh/quick-perf/sql-test-data-generator">
19-
<img src="https://codecov.io/gh/quick-perf/sql-test-data-generator/branch/main/graph/badge.svg?token=U475ES0JIL"/>
18+
<a href="https://codecov.io/gh/quick-perf/quick-sql-test-data">
19+
<img src="https://codecov.io/gh/quick-perf/quick-sql-test-data/branch/main/graph/badge.svg?token=U475ES0JIL"/>
2020
</a>
2121

22-
## Why use *SQL test data generator*?
22+
## Why use *Quick SQL test data*?
2323
Writing datasets with SQL may be tedious and time-consuming because of database integrity constraints.
2424

2525
*This Java library aims to ease the generation of datasets to test SQL queries. It produces INSERT statements taking account of integrity constraints.*
@@ -30,7 +30,7 @@ The library automatically:
3030
* sorts insert statements to accommodate *foreign key constraints*
3131
* sorts insert statements following *primary key values*
3232

33-
_[Another project](https://github.com/quick-perf/web-sql-test-data-generator#web-sql-test-data-generator) provides a web page to ease the use of the _SQL test data generator_ library._
33+
_[Another project](https://github.com/quick-perf/quick-sql-test-data-web) provides a web page to ease the use of the _Quick SQL test data_ library._
3434

3535
## How to use the library
3636

@@ -40,14 +40,14 @@ With Maven, you have to add the following dependency:
4040

4141
<dependency>
4242
<groupId>org.quickperf</groupId>
43-
<artifactId>sql-test-data-generator</artifactId>
43+
<artifactId>quick-sql-test-data</artifactId>
4444
<version>0.1-SNAPSHOT</version>
4545
</dependency>
4646
```
4747

48-
You can generate the insert statements with the help of an instance of `org.stdg.SqlTestDataGenerator` class.
48+
You can generate the insert statements with the help of an instance of `org.qstd.QuickSqlTestData` class.
4949

50-
_SQL test data generator_ works with:
50+
_Quick SQL test data_ works with:
5151
* PostgreSQL
5252
* Oracle
5353
* MariaDB
@@ -66,10 +66,10 @@ This case happens when you develop SQL queries with *Test-Driven Development* (T
6666

6767
You can read below an example where we define a dataset row for which we generate the INSERT statement:
6868
```java
69-
SqlTestDataGenerator sqlTestDataGenerator = SqlTestDataGenerator.buildFrom(dataSource);
69+
SqlTestData quickSqlTestData = QuickSqlTestData.buildFrom(dataSource);
7070
DatasetRow datasetRow = DatasetRow.ofTable("Player")
7171
.addColumnValue("lastName","Pogba");
72-
List<String> insertStatements = sqlTestDataGenerator.generateInsertListFor(datasetRow);
72+
List<String> insertStatements = quickSqlTestData.generateInsertListFor(datasetRow);
7373

7474
System.out.println(insertStatements);
7575
```
@@ -84,9 +84,9 @@ FIRSTNAME column owns a NOT NULL constraint. For this reason, the library has re
8484
Let's take an example:
8585

8686
```java
87-
SqlTestDataGenerator sqlTestDataGenerator = SqlTestDataGenerator.buildFrom(dataSource);
87+
QuickSqlTestData quickSqlTestData = QuickSqlTestData.buildFrom(dataSource);
8888
String selectStatement = "SELECT * FROM Player WHERE LASTNAME = 'Pogba'";
89-
String insertScript = sqlTestDataGenerator.generateInsertScriptFor(selectStatement);
89+
String insertScript = quickSqlTestData.generateInsertScriptFor(selectStatement);
9090
System.out.println(insertScript);
9191
```
9292

THIRD_PARTY.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
SQL test data generator uses:
1+
Quick SQL test data library uses:
22
* JSqlParser licensed under Apache Software License, Version 2.0 (https://github.com/JSQLParser/JSqlParser/blob/master/LICENSE_APACHEV2) or LGPL V2.1 (https://github.com/JSQLParser/JSqlParser/blob/master/LICENSE_LGPLV21)
33

4-
SQL test data generator uses only for testing and doesn't ship with:
4+
Quick SQL test data library uses only for testing and doesn't ship with:
55
* JUnit 5 licensed under Eclipse Public License - v 2.0 (https://github.com/junit-team/junit5/blob/main/LICENSE.md)
66
* AssertJ licensed under Apache Software License, Version 2.0 (https://github.com/assertj/assertj-core/blob/main/LICENSE.txt)
77
* AssertJ-DB licensed under Apache Software License, Version 2.0 (https://github.com/assertj/assertj-db/blob/main/LICENSE.txt)

pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121

2222
<description>This Java library aims to ease the generation of datasets to test SQL queries. It produces INSERT statements taking account of integrity constraints.</description>
2323

24-
<url>https://github.com/quick-perf/sql-test-data-generator</url>
24+
<url>https://github.com/quick-perf/quick-sql-test-data</url>
2525

2626
<groupId>org.quickperf</groupId>
27-
<artifactId>sql-test-data-generator</artifactId>
27+
<artifactId>quick-sql-test-data</artifactId>
2828
<version>0.1-SNAPSHOT</version>
29-
<name>SQL test data generator</name>
29+
<name>Quick SQL test data</name>
3030
<inceptionYear>2021</inceptionYear>
3131

3232
<properties>
@@ -294,7 +294,7 @@
294294

295295
<issueManagement>
296296
<system>github</system>
297-
<url>https://github.com/quick-perf/sql-test-data-generator</url>
297+
<url>https://github.com/quick-perf/quick-sql-test-data</url>
298298
</issueManagement>
299299

300300
<profiles>
@@ -385,9 +385,9 @@
385385
</profiles>
386386

387387
<scm>
388-
<connection>scm:git:https://github.com/quick-perf/sql-test-data-generator.git</connection>
389-
<developerConnection>scm:git:git@github.com:quick-perf/sql-test-data-generator.git</developerConnection>
390-
<url>https://github.com/quick-perf/sql-test-data-generator</url>
388+
<connection>scm:git:https://github.com/quick-perf/quick-sql-test-data.git</connection>
389+
<developerConnection>scm:git:git@github.com:quick-perf/quick-sql-test-data.git</developerConnection>
390+
<url>https://github.com/quick-perf/quick-sql-test-data</url>
391391
<tag>HEAD</tag>
392392
</scm>
393393

src/main/java/org/stdg/ColumnMappingPart.java renamed to src/main/java/org/qstd/ColumnMappingPart.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Copyright 2021-2021 the original author or authors.
1212
*/
1313

14-
package org.stdg;
14+
package org.qstd;
1515

1616
public class ColumnMappingPart {
1717

src/main/java/org/stdg/ColumnNamesComparator.java renamed to src/main/java/org/qstd/ColumnNamesComparator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Copyright 2021-2021 the original author or authors.
1212
*/
1313

14-
package org.stdg;
14+
package org.qstd;
1515

1616
import java.util.Comparator;
1717
import java.util.HashMap;

src/main/java/org/stdg/ColumnNamesExtractor.java renamed to src/main/java/org/qstd/ColumnNamesExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Copyright 2021-2021 the original author or authors.
1212
*/
1313

14-
package org.stdg;
14+
package org.qstd;
1515

1616
import net.sf.jsqlparser.expression.BinaryExpression;
1717
import net.sf.jsqlparser.expression.Expression;

src/main/java/org/stdg/ColumnOrdersFinder.java renamed to src/main/java/org/qstd/ColumnOrdersFinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Copyright 2021-2021 the original author or authors.
1212
*/
1313

14-
package org.stdg;
14+
package org.qstd;
1515

1616
import java.util.List;
1717

src/main/java/org/stdg/ColumnValueFormatter.java renamed to src/main/java/org/qstd/ColumnValueFormatter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
* Copyright 2021-2021 the original author or authors.
1212
*/
1313

14-
package org.stdg;
14+
package org.qstd;
1515

1616
import java.time.OffsetDateTime;
1717
import java.time.format.DateTimeFormatter;
1818
import java.time.format.DateTimeFormatterBuilder;
19-
import org.stdg.dbtype.DatabaseType;
19+
import org.qstd.dbtype.DatabaseType;
2020

2121
import java.sql.Time;
2222
import java.sql.Timestamp;

src/main/java/org/stdg/ColumnsMapping.java renamed to src/main/java/org/qstd/ColumnsMapping.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Copyright 2021-2021 the original author or authors.
1212
*/
1313

14-
package org.stdg;
14+
package org.qstd;
1515

1616
public class ColumnsMapping {
1717

src/main/java/org/stdg/ColumnsMappingGroup.java renamed to src/main/java/org/qstd/ColumnsMappingGroup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Copyright 2021-2021 the original author or authors.
1212
*/
1313

14-
package org.stdg;
14+
package org.qstd;
1515

1616
import java.util.ArrayList;
1717
import java.util.Collection;

0 commit comments

Comments
 (0)