Skip to content

Commit 946b7df

Browse files
committed
Add license
1 parent f4c3b5e commit 946b7df

File tree

13 files changed

+253
-6
lines changed

13 files changed

+253
-6
lines changed

flyway-database-duckdb/src/main/java/org/flywaydb/community/database/DuckDBDatabaseExtension.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*-
2+
* ========================LICENSE_START=================================
3+
* flyway-database-duckdb
4+
* ========================================================================
5+
* Copyright (C) 2010 - 2025 Red Gate Software Ltd
6+
* ========================================================================
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* =========================LICENSE_END==================================
19+
*/
120
package org.flywaydb.community.database;
221

322
import org.flywaydb.core.api.FlywayException;

flyway-database-duckdb/src/main/java/org/flywaydb/community/database/duckdb/DuckDBConnection.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*-
2+
* ========================LICENSE_START=================================
3+
* flyway-database-duckdb
4+
* ========================================================================
5+
* Copyright (C) 2010 - 2025 Red Gate Software Ltd
6+
* ========================================================================
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* =========================LICENSE_END==================================
19+
*/
120
package org.flywaydb.community.database.duckdb;
221

322
import org.flywaydb.core.internal.database.base.Connection;

flyway-database-duckdb/src/main/java/org/flywaydb/community/database/duckdb/DuckDBDatabase.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*-
2+
* ========================LICENSE_START=================================
3+
* flyway-database-duckdb
4+
* ========================================================================
5+
* Copyright (C) 2010 - 2025 Red Gate Software Ltd
6+
* ========================================================================
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* =========================LICENSE_END==================================
19+
*/
120
package org.flywaydb.community.database.duckdb;
221

322
import org.flywaydb.core.api.configuration.Configuration;

flyway-database-duckdb/src/main/java/org/flywaydb/community/database/duckdb/DuckDBDatabaseType.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*-
2+
* ========================LICENSE_START=================================
3+
* flyway-database-duckdb
4+
* ========================================================================
5+
* Copyright (C) 2010 - 2025 Red Gate Software Ltd
6+
* ========================================================================
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* =========================LICENSE_END==================================
19+
*/
120
package org.flywaydb.community.database.duckdb;
221

322
import org.flywaydb.community.database.DuckDBDatabaseExtension;

flyway-database-duckdb/src/main/java/org/flywaydb/community/database/duckdb/DuckDBParser.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*-
2+
* ========================LICENSE_START=================================
3+
* flyway-database-duckdb
4+
* ========================================================================
5+
* Copyright (C) 2010 - 2025 Red Gate Software Ltd
6+
* ========================================================================
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* =========================LICENSE_END==================================
19+
*/
120
package org.flywaydb.community.database.duckdb;
221

322
import org.flywaydb.core.api.configuration.Configuration;

flyway-database-duckdb/src/main/java/org/flywaydb/community/database/duckdb/DuckDBSchema.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*-
2+
* ========================LICENSE_START=================================
3+
* flyway-database-duckdb
4+
* ========================================================================
5+
* Copyright (C) 2010 - 2025 Red Gate Software Ltd
6+
* ========================================================================
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* =========================LICENSE_END==================================
19+
*/
120
package org.flywaydb.community.database.duckdb;
221

322
import org.flywaydb.core.internal.database.base.Schema;

flyway-database-duckdb/src/main/java/org/flywaydb/community/database/duckdb/DuckDBTable.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*-
2+
* ========================LICENSE_START=================================
3+
* flyway-database-duckdb
4+
* ========================================================================
5+
* Copyright (C) 2010 - 2025 Red Gate Software Ltd
6+
* ========================================================================
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* =========================LICENSE_END==================================
19+
*/
120
package org.flywaydb.community.database.duckdb;
221

322
import org.flywaydb.core.internal.database.base.Table;

flyway-database-duckdb/src/test/java/org/flywaydb/community/database/duckdb/DuckDBSupportTest.java

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*-
2+
* ========================LICENSE_START=================================
3+
* flyway-database-duckdb
4+
* ========================================================================
5+
* Copyright (C) 2010 - 2025 Red Gate Software Ltd
6+
* ========================================================================
7+
* Licensed under the Apache License, Version 2.0 (the "License");
8+
* you may not use this file except in compliance with the License.
9+
* You may obtain a copy of the License at
10+
*
11+
* http://www.apache.org/licenses/LICENSE-2.0
12+
*
13+
* Unless required by applicable law or agreed to in writing, software
14+
* distributed under the License is distributed on an "AS IS" BASIS,
15+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
* See the License for the specific language governing permissions and
17+
* limitations under the License.
18+
* =========================LICENSE_END==================================
19+
*/
120
package org.flywaydb.community.database.duckdb;
221

322
import org.flywaydb.core.Flyway;
@@ -189,4 +208,4 @@ private JdbcTemplate jdbcTemplate() throws SQLException {
189208
new DuckDBDatabaseType()
190209
);
191210
}
192-
}
211+
}

flyway-database-duckdb/src/test/resources/initial_migration/V001__first.sql

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
---
2+
-- ========================LICENSE_START=================================
3+
-- flyway-database-duckdb
4+
-- ========================================================================
5+
-- Copyright (C) 2010 - 2025 Red Gate Software Ltd
6+
-- ========================================================================
7+
-- Licensed under the Apache License, Version 2.0 (the "License");
8+
-- you may not use this file except in compliance with the License.
9+
-- You may obtain a copy of the License at
10+
--
11+
-- http://www.apache.org/licenses/LICENSE-2.0
12+
--
13+
-- Unless required by applicable law or agreed to in writing, software
14+
-- distributed under the License is distributed on an "AS IS" BASIS,
15+
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
-- See the License for the specific language governing permissions and
17+
-- limitations under the License.
18+
-- =========================LICENSE_END==================================
19+
---
120
CREATE TABLE ${flyway:defaultSchema}.some_table(
221
id INT,
322
text VARCHAR
@@ -8,4 +27,4 @@ CREATE INDEX some_table_text ON ${flyway:defaultSchema}.some_table(text);
827
CREATE SEQUENCE some_sequence;
928

1029
INSERT INTO ${flyway:defaultSchema}.some_table(id, text) VALUES (1, 'first');
11-
INSERT INTO ${flyway:defaultSchema}.some_table(id, text) VALUES (2, 'second');
30+
INSERT INTO ${flyway:defaultSchema}.some_table(id, text) VALUES (2, 'second');
Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
1+
---
2+
-- ========================LICENSE_START=================================
3+
-- flyway-database-duckdb
4+
-- ========================================================================
5+
-- Copyright (C) 2010 - 2025 Red Gate Software Ltd
6+
-- ========================================================================
7+
-- Licensed under the Apache License, Version 2.0 (the "License");
8+
-- you may not use this file except in compliance with the License.
9+
-- You may obtain a copy of the License at
10+
--
11+
-- http://www.apache.org/licenses/LICENSE-2.0
12+
--
13+
-- Unless required by applicable law or agreed to in writing, software
14+
-- distributed under the License is distributed on an "AS IS" BASIS,
15+
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
-- See the License for the specific language governing permissions and
17+
-- limitations under the License.
18+
-- =========================LICENSE_END==================================
19+
---
120
CREATE MACRO ${flyway:defaultSchema}.some_is_empty(a) AS a == '';
221

322
CREATE VIEW ${flyway:defaultSchema}.some_view AS
4-
SELECT * FROM ${flyway:defaultSchema}.some_table WHERE NOT some_is_empty(text);
23+
SELECT * FROM ${flyway:defaultSchema}.some_table WHERE NOT some_is_empty(text);

flyway-database-duckdb/src/test/resources/next_migration/V001__first.sql

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
---
2+
-- ========================LICENSE_START=================================
3+
-- flyway-database-duckdb
4+
-- ========================================================================
5+
-- Copyright (C) 2010 - 2025 Red Gate Software Ltd
6+
-- ========================================================================
7+
-- Licensed under the Apache License, Version 2.0 (the "License");
8+
-- you may not use this file except in compliance with the License.
9+
-- You may obtain a copy of the License at
10+
--
11+
-- http://www.apache.org/licenses/LICENSE-2.0
12+
--
13+
-- Unless required by applicable law or agreed to in writing, software
14+
-- distributed under the License is distributed on an "AS IS" BASIS,
15+
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
-- See the License for the specific language governing permissions and
17+
-- limitations under the License.
18+
-- =========================LICENSE_END==================================
19+
---
120
CREATE TABLE ${flyway:defaultSchema}.some_table(
221
id INT,
322
text VARCHAR
@@ -8,4 +27,4 @@ CREATE INDEX some_table_text ON ${flyway:defaultSchema}.some_table(text);
827
CREATE SEQUENCE some_sequence;
928

1029
INSERT INTO ${flyway:defaultSchema}.some_table(id, text) VALUES (1, 'first');
11-
INSERT INTO ${flyway:defaultSchema}.some_table(id, text) VALUES (2, 'second');
30+
INSERT INTO ${flyway:defaultSchema}.some_table(id, text) VALUES (2, 'second');
Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
1+
---
2+
-- ========================LICENSE_START=================================
3+
-- flyway-database-duckdb
4+
-- ========================================================================
5+
-- Copyright (C) 2010 - 2025 Red Gate Software Ltd
6+
-- ========================================================================
7+
-- Licensed under the Apache License, Version 2.0 (the "License");
8+
-- you may not use this file except in compliance with the License.
9+
-- You may obtain a copy of the License at
10+
--
11+
-- http://www.apache.org/licenses/LICENSE-2.0
12+
--
13+
-- Unless required by applicable law or agreed to in writing, software
14+
-- distributed under the License is distributed on an "AS IS" BASIS,
15+
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
-- See the License for the specific language governing permissions and
17+
-- limitations under the License.
18+
-- =========================LICENSE_END==================================
19+
---
120
CREATE MACRO ${flyway:defaultSchema}.some_is_empty(a) AS a == '';
221

322
CREATE VIEW ${flyway:defaultSchema}.some_view AS
4-
SELECT * FROM ${flyway:defaultSchema}.some_table WHERE NOT some_is_empty(text);
23+
SELECT * FROM ${flyway:defaultSchema}.some_table WHERE NOT some_is_empty(text);
Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,20 @@
1-
INSERT INTO ${flyway:defaultSchema}.some_table(id, text) VALUES (3, 'third');
1+
---
2+
-- ========================LICENSE_START=================================
3+
-- flyway-database-duckdb
4+
-- ========================================================================
5+
-- Copyright (C) 2010 - 2025 Red Gate Software Ltd
6+
-- ========================================================================
7+
-- Licensed under the Apache License, Version 2.0 (the "License");
8+
-- you may not use this file except in compliance with the License.
9+
-- You may obtain a copy of the License at
10+
--
11+
-- http://www.apache.org/licenses/LICENSE-2.0
12+
--
13+
-- Unless required by applicable law or agreed to in writing, software
14+
-- distributed under the License is distributed on an "AS IS" BASIS,
15+
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
-- See the License for the specific language governing permissions and
17+
-- limitations under the License.
18+
-- =========================LICENSE_END==================================
19+
---
20+
INSERT INTO ${flyway:defaultSchema}.some_table(id, text) VALUES (3, 'third');

0 commit comments

Comments
 (0)