diff --git a/Dockerfile b/Dockerfile index 3763235ef..d3ee1a306 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,19 @@ +# /* +# * Copyright 2025 Olake By Datazip +# * +# * Licensed under the Apache License, Version 2.0 (the "License"); +# * you may not use this file except in compliance with the License. +# * You may obtain a copy of the License at +# * +# * http://www.apache.org/licenses/LICENSE-2.0 +# * +# * Unless required by applicable law or agreed to in writing, software +# * distributed under the License is distributed on an "AS IS" BASIS, +# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# * See the License for the specific language governing permissions and +# * limitations under the License. +# */ + # Build Stage FROM golang:1.23-alpine AS base diff --git a/build.sh b/build.sh index b8a81a58b..76eeb6d3f 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,19 @@ +# /* +# * Copyright 2025 Olake By Datazip +# * +# * Licensed under the Apache License, Version 2.0 (the "License"); +# * you may not use this file except in compliance with the License. +# * You may obtain a copy of the License at +# * +# * http://www.apache.org/licenses/LICENSE-2.0 +# * +# * Unless required by applicable law or agreed to in writing, software +# * distributed under the License is distributed on an "AS IS" BASIS, +# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# * See the License for the specific language governing permissions and +# * limitations under the License. +# */ + #!/bin/bash function fail() { diff --git a/connector.go b/connector.go index 3cef14372..465ebe8b1 100644 --- a/connector.go +++ b/connector.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package olake import ( diff --git a/constants/constants.go b/constants/constants.go index e55dc967d..4b9ce3466 100644 --- a/constants/constants.go +++ b/constants/constants.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package constants import ( diff --git a/destination/iceberg/config.go b/destination/iceberg/config.go index 8f2cbe561..ce9ac0e54 100644 --- a/destination/iceberg/config.go +++ b/destination/iceberg/config.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package iceberg import ( diff --git a/destination/iceberg/iceberg.go b/destination/iceberg/iceberg.go index 5733d6537..466729309 100644 --- a/destination/iceberg/iceberg.go +++ b/destination/iceberg/iceberg.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package iceberg import ( diff --git a/destination/iceberg/iceberg_utils.go b/destination/iceberg/iceberg_utils.go index 27b04b415..4959b8a02 100644 --- a/destination/iceberg/iceberg_utils.go +++ b/destination/iceberg/iceberg_utils.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package iceberg import ( diff --git a/destination/interface.go b/destination/interface.go index 287f90d1a..75acaa898 100644 --- a/destination/interface.go +++ b/destination/interface.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package destination import ( diff --git a/destination/parquet/config.go b/destination/parquet/config.go index 67f365b7a..b0668bcf3 100644 --- a/destination/parquet/config.go +++ b/destination/parquet/config.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package parquet import ( diff --git a/destination/parquet/parquet.go b/destination/parquet/parquet.go index 22e15a466..82dd8cbbd 100644 --- a/destination/parquet/parquet.go +++ b/destination/parquet/parquet.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package parquet import ( diff --git a/destination/writers.go b/destination/writers.go index ec8526e22..343cc0781 100644 --- a/destination/writers.go +++ b/destination/writers.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package destination import ( diff --git a/drivers/abstract/abstract.go b/drivers/abstract/abstract.go index 1b4fb0613..a32577f62 100644 --- a/drivers/abstract/abstract.go +++ b/drivers/abstract/abstract.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package abstract import ( diff --git a/drivers/abstract/backfill.go b/drivers/abstract/backfill.go index f1c978f2a..284e92dcb 100644 --- a/drivers/abstract/backfill.go +++ b/drivers/abstract/backfill.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package abstract import ( diff --git a/drivers/abstract/cdc.go b/drivers/abstract/cdc.go index 8d7e8a089..0679d9cbd 100644 --- a/drivers/abstract/cdc.go +++ b/drivers/abstract/cdc.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package abstract import ( diff --git a/drivers/abstract/incremental.go b/drivers/abstract/incremental.go index e23a16029..6017c6016 100644 --- a/drivers/abstract/incremental.go +++ b/drivers/abstract/incremental.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package abstract import ( diff --git a/drivers/abstract/interface.go b/drivers/abstract/interface.go index c21f0f164..72b5c984b 100644 --- a/drivers/abstract/interface.go +++ b/drivers/abstract/interface.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package abstract import ( diff --git a/drivers/abstract/utils.go b/drivers/abstract/utils.go index 30f5276b9..8cdda753a 100644 --- a/drivers/abstract/utils.go +++ b/drivers/abstract/utils.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package abstract import ( diff --git a/drivers/mongodb/internal/backfill.go b/drivers/mongodb/internal/backfill.go index 1a3617989..ec7bf6387 100644 --- a/drivers/mongodb/internal/backfill.go +++ b/drivers/mongodb/internal/backfill.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/mongodb/internal/cdc.go b/drivers/mongodb/internal/cdc.go index 054168ead..f5f8e06c0 100644 --- a/drivers/mongodb/internal/cdc.go +++ b/drivers/mongodb/internal/cdc.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/mongodb/internal/config.go b/drivers/mongodb/internal/config.go index 2b6d73bb6..5f6ac3cf9 100644 --- a/drivers/mongodb/internal/config.go +++ b/drivers/mongodb/internal/config.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/mongodb/internal/incremental.go b/drivers/mongodb/internal/incremental.go index 676894eba..19a4129a8 100644 --- a/drivers/mongodb/internal/incremental.go +++ b/drivers/mongodb/internal/incremental.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( @@ -65,7 +81,7 @@ func (m *Mongo) buildIncrementalCondition(stream types.StreamInterface) (bson.D, if secondaryCursor != "" && lastSecondaryCursorValue == nil { logger.Warnf("Stored secondary cursor value is nil for the stream [%s]", stream.ID()) } - + incrementalCondition := buildMongoCondition(types.Condition{ Column: primaryCursor, Value: fmt.Sprintf("%v", lastPrimaryCursorValue), diff --git a/drivers/mongodb/internal/mon.go b/drivers/mongodb/internal/mon.go index e9a18a221..634adf819 100644 --- a/drivers/mongodb/internal/mon.go +++ b/drivers/mongodb/internal/mon.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/mongodb/internal/mon_test.go b/drivers/mongodb/internal/mon_test.go index f69bffad4..02f4f7250 100644 --- a/drivers/mongodb/internal/mon_test.go +++ b/drivers/mongodb/internal/mon_test.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/mongodb/internal/mon_test_util.go b/drivers/mongodb/internal/mon_test_util.go index c60b8b8b9..433315ce8 100644 --- a/drivers/mongodb/internal/mon_test_util.go +++ b/drivers/mongodb/internal/mon_test_util.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/mongodb/main.go b/drivers/mongodb/main.go index 91dc9a2e1..f7c8a03fe 100644 --- a/drivers/mongodb/main.go +++ b/drivers/mongodb/main.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package main import ( diff --git a/drivers/mysql/docker-compose.yml b/drivers/mysql/docker-compose.yml index 32a55e1a0..ec0b01ced 100644 --- a/drivers/mysql/docker-compose.yml +++ b/drivers/mysql/docker-compose.yml @@ -1,3 +1,19 @@ +# /* +# * Copyright 2025 Olake By Datazip +# * +# * Licensed under the Apache License, Version 2.0 (the "License"); +# * you may not use this file except in compliance with the License. +# * You may obtain a copy of the License at +# * +# * http://www.apache.org/licenses/LICENSE-2.0 +# * +# * Unless required by applicable law or agreed to in writing, software +# * distributed under the License is distributed on an "AS IS" BASIS, +# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# * See the License for the specific language governing permissions and +# * limitations under the License. +# */ + version: '3.8' services: diff --git a/drivers/mysql/docker-entrypoint-initdb.d/init.sql b/drivers/mysql/docker-entrypoint-initdb.d/init.sql index 8565cdfec..f69a049f4 100644 --- a/drivers/mysql/docker-entrypoint-initdb.d/init.sql +++ b/drivers/mysql/docker-entrypoint-initdb.d/init.sql @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + DROP USER IF EXISTS 'mysql'@'%'; CREATE USER 'mysql'@'%' IDENTIFIED BY 'secret1234'; GRANT REPLICATION CLIENT ON *.* TO 'mysql'@'%'; diff --git a/drivers/mysql/internal/backfill.go b/drivers/mysql/internal/backfill.go index 618113300..443a72778 100644 --- a/drivers/mysql/internal/backfill.go +++ b/drivers/mysql/internal/backfill.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/mysql/internal/cdc.go b/drivers/mysql/internal/cdc.go index d8f4574c9..417c618f6 100644 --- a/drivers/mysql/internal/cdc.go +++ b/drivers/mysql/internal/cdc.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/mysql/internal/config.go b/drivers/mysql/internal/config.go index e0cd27c18..298da8f1d 100644 --- a/drivers/mysql/internal/config.go +++ b/drivers/mysql/internal/config.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/mysql/internal/datatype_conversion.go b/drivers/mysql/internal/datatype_conversion.go index 21b7832ca..d3b85bf1f 100644 --- a/drivers/mysql/internal/datatype_conversion.go +++ b/drivers/mysql/internal/datatype_conversion.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import "github.com/datazip-inc/olake/types" diff --git a/drivers/mysql/internal/incremental.go b/drivers/mysql/internal/incremental.go index 89ec0263a..dc07928ac 100644 --- a/drivers/mysql/internal/incremental.go +++ b/drivers/mysql/internal/incremental.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/mysql/internal/mysql.go b/drivers/mysql/internal/mysql.go index 363c950f9..a10ccae16 100644 --- a/drivers/mysql/internal/mysql.go +++ b/drivers/mysql/internal/mysql.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/mysql/internal/mysql_test.go b/drivers/mysql/internal/mysql_test.go index 494b0fb3b..fd3741b70 100644 --- a/drivers/mysql/internal/mysql_test.go +++ b/drivers/mysql/internal/mysql_test.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/mysql/internal/mysql_test_util.go b/drivers/mysql/internal/mysql_test_util.go index 1f6087788..4130aea7c 100644 --- a/drivers/mysql/internal/mysql_test_util.go +++ b/drivers/mysql/internal/mysql_test_util.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/mysql/main.go b/drivers/mysql/main.go index d0fa51fa0..634cee98a 100644 --- a/drivers/mysql/main.go +++ b/drivers/mysql/main.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package main import ( diff --git a/drivers/oracle/internal/backfill.go b/drivers/oracle/internal/backfill.go index 6a47d7eb6..7e0dcad61 100644 --- a/drivers/oracle/internal/backfill.go +++ b/drivers/oracle/internal/backfill.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/oracle/internal/cdc.go b/drivers/oracle/internal/cdc.go index 8565a8953..7932ed7c0 100644 --- a/drivers/oracle/internal/cdc.go +++ b/drivers/oracle/internal/cdc.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( @@ -32,4 +48,4 @@ func (o *Oracle) CDCSupported() bool { // SetupState sets the state for the driver func (o *Oracle) SetupState(state *types.State) { o.state = state -} \ No newline at end of file +} diff --git a/drivers/oracle/internal/config.go b/drivers/oracle/internal/config.go index 6f0481727..82c2feb7a 100644 --- a/drivers/oracle/internal/config.go +++ b/drivers/oracle/internal/config.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/oracle/internal/datatype_conversion.go b/drivers/oracle/internal/datatype_conversion.go index 0201eec53..cc97f5869 100644 --- a/drivers/oracle/internal/datatype_conversion.go +++ b/drivers/oracle/internal/datatype_conversion.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/oracle/internal/incremental.go b/drivers/oracle/internal/incremental.go index c5badbeb2..808b28b9b 100644 --- a/drivers/oracle/internal/incremental.go +++ b/drivers/oracle/internal/incremental.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/oracle/internal/oracle.go b/drivers/oracle/internal/oracle.go index abb40d599..2996db07e 100644 --- a/drivers/oracle/internal/oracle.go +++ b/drivers/oracle/internal/oracle.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/oracle/main.go b/drivers/oracle/main.go index 7c9b1038a..59f09354c 100644 --- a/drivers/oracle/main.go +++ b/drivers/oracle/main.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package main import ( diff --git a/drivers/postgres/docker-compose.yml b/drivers/postgres/docker-compose.yml index f07ec6998..d8f09865d 100644 --- a/drivers/postgres/docker-compose.yml +++ b/drivers/postgres/docker-compose.yml @@ -1,3 +1,19 @@ +# /* +# * Copyright 2025 Olake By Datazip +# * +# * Licensed under the Apache License, Version 2.0 (the "License"); +# * you may not use this file except in compliance with the License. +# * You may obtain a copy of the License at +# * +# * http://www.apache.org/licenses/LICENSE-2.0 +# * +# * Unless required by applicable law or agreed to in writing, software +# * distributed under the License is distributed on an "AS IS" BASIS, +# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# * See the License for the specific language governing permissions and +# * limitations under the License. +# */ + version: '3.8' services: diff --git a/drivers/postgres/internal/backfill.go b/drivers/postgres/internal/backfill.go index 1035978c7..70d6cb361 100644 --- a/drivers/postgres/internal/backfill.go +++ b/drivers/postgres/internal/backfill.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/postgres/internal/cdc.go b/drivers/postgres/internal/cdc.go index 1b18632cb..94eb7cd51 100644 --- a/drivers/postgres/internal/cdc.go +++ b/drivers/postgres/internal/cdc.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/postgres/internal/config.go b/drivers/postgres/internal/config.go index bf306ace1..70993dc63 100644 --- a/drivers/postgres/internal/config.go +++ b/drivers/postgres/internal/config.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/postgres/internal/datatype_conversion.go b/drivers/postgres/internal/datatype_conversion.go index f4b7cdebc..57fba4ec0 100644 --- a/drivers/postgres/internal/datatype_conversion.go +++ b/drivers/postgres/internal/datatype_conversion.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/postgres/internal/incremental.go b/drivers/postgres/internal/incremental.go index e74244e66..bf3713dc1 100644 --- a/drivers/postgres/internal/incremental.go +++ b/drivers/postgres/internal/incremental.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/postgres/internal/postgres.go b/drivers/postgres/internal/postgres.go index 4ad363a00..8841a794e 100644 --- a/drivers/postgres/internal/postgres.go +++ b/drivers/postgres/internal/postgres.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/postgres/internal/postgres_test.go b/drivers/postgres/internal/postgres_test.go index 8200648d0..d544e5a5a 100644 --- a/drivers/postgres/internal/postgres_test.go +++ b/drivers/postgres/internal/postgres_test.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/postgres/internal/postgres_test_util.go b/drivers/postgres/internal/postgres_test_util.go index f783a89c6..fbc55b58c 100644 --- a/drivers/postgres/internal/postgres_test_util.go +++ b/drivers/postgres/internal/postgres_test_util.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package driver import ( diff --git a/drivers/postgres/main.go b/drivers/postgres/main.go index 486e6da6b..7e0cb1cb4 100644 --- a/drivers/postgres/main.go +++ b/drivers/postgres/main.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package main import ( diff --git a/examples/docker-compose.yml b/examples/docker-compose.yml index 68273d8ac..3017110fd 100644 --- a/examples/docker-compose.yml +++ b/examples/docker-compose.yml @@ -1,3 +1,19 @@ +# /* +# * Copyright 2025 Olake By Datazip +# * +# * Licensed under the Apache License, Version 2.0 (the "License"); +# * you may not use this file except in compliance with the License. +# * You may obtain a copy of the License at +# * +# * http://www.apache.org/licenses/LICENSE-2.0 +# * +# * Unless required by applicable law or agreed to in writing, software +# * distributed under the License is distributed on an "AS IS" BASIS, +# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# * See the License for the specific language governing permissions and +# * limitations under the License. +# */ + x-app-defaults: host_persistence_path: &hostPersistencePath ${PWD}/olake-data worker_config_volume_details: &workerConfigVolumeDetails diff --git a/pkg/binlog/binlog.go b/pkg/binlog/binlog.go index d3de2a472..aaa98a209 100644 --- a/pkg/binlog/binlog.go +++ b/pkg/binlog/binlog.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package binlog import ( diff --git a/pkg/binlog/filter.go b/pkg/binlog/filter.go index 62209c1b4..a49a499a6 100644 --- a/pkg/binlog/filter.go +++ b/pkg/binlog/filter.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package binlog import ( diff --git a/pkg/binlog/types.go b/pkg/binlog/types.go index b7409a11f..a5475f683 100644 --- a/pkg/binlog/types.go +++ b/pkg/binlog/types.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package binlog import ( diff --git a/pkg/jdbc/jdbc.go b/pkg/jdbc/jdbc.go index 6a92498b9..2f3f87dc8 100644 --- a/pkg/jdbc/jdbc.go +++ b/pkg/jdbc/jdbc.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package jdbc import ( diff --git a/pkg/jdbc/reader.go b/pkg/jdbc/reader.go index b1b163592..8a835140e 100644 --- a/pkg/jdbc/reader.go +++ b/pkg/jdbc/reader.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package jdbc import ( diff --git a/pkg/waljs/filter.go b/pkg/waljs/filter.go index 5af6c2e6d..c16254e05 100644 --- a/pkg/waljs/filter.go +++ b/pkg/waljs/filter.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package waljs import ( diff --git a/pkg/waljs/types.go b/pkg/waljs/types.go index 58b42dca5..701c679a6 100644 --- a/pkg/waljs/types.go +++ b/pkg/waljs/types.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package waljs import ( diff --git a/pkg/waljs/waljs.go b/pkg/waljs/waljs.go index 7577b75db..2cb802b2e 100644 --- a/pkg/waljs/waljs.go +++ b/pkg/waljs/waljs.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package waljs import ( diff --git a/protocol/check.go b/protocol/check.go index 40b82ea92..db385ea5b 100644 --- a/protocol/check.go +++ b/protocol/check.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package protocol import ( diff --git a/protocol/discover.go b/protocol/discover.go index 819c757d4..cb7a4d289 100644 --- a/protocol/discover.go +++ b/protocol/discover.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package protocol import ( diff --git a/protocol/root.go b/protocol/root.go index 628587441..468d77950 100644 --- a/protocol/root.go +++ b/protocol/root.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package protocol import ( diff --git a/protocol/spec.go b/protocol/spec.go index 3e854f273..bbdba659f 100644 --- a/protocol/spec.go +++ b/protocol/spec.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package protocol import ( diff --git a/protocol/sync.go b/protocol/sync.go index 04fa76e82..e4c271984 100644 --- a/protocol/sync.go +++ b/protocol/sync.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package protocol import ( diff --git a/release-tool.sh b/release-tool.sh index e2b2203bb..28fe6e8dd 100644 --- a/release-tool.sh +++ b/release-tool.sh @@ -1,3 +1,19 @@ +# /* +# * Copyright 2025 Olake By Datazip +# * +# * Licensed under the Apache License, Version 2.0 (the "License"); +# * you may not use this file except in compliance with the License. +# * You may obtain a copy of the License at +# * +# * http://www.apache.org/licenses/LICENSE-2.0 +# * +# * Unless required by applicable law or agreed to in writing, software +# * distributed under the License is distributed on an "AS IS" BASIS, +# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# * See the License for the specific language governing permissions and +# * limitations under the License. +# */ + #!/usr/bin/env bash # Function for colored output diff --git a/types/adapter.go b/types/adapter.go index bf15f0444..585f0e67d 100644 --- a/types/adapter.go +++ b/types/adapter.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package types type AdapterType string diff --git a/types/catalog.go b/types/catalog.go index fbf1b2a4d..3d7283121 100644 --- a/types/catalog.go +++ b/types/catalog.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package types import ( diff --git a/types/data_types.go b/types/data_types.go index ae694e130..7925d6ac3 100644 --- a/types/data_types.go +++ b/types/data_types.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package types import ( diff --git a/types/interface.go b/types/interface.go index c5496e241..46b76e5c4 100644 --- a/types/interface.go +++ b/types/interface.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package types type StreamInterface interface { diff --git a/types/message_type.go b/types/message_type.go index 31d50dcff..60027c751 100644 --- a/types/message_type.go +++ b/types/message_type.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package types type MessageType string diff --git a/types/set.go b/types/set.go index 9ae2eec13..0e90ce18b 100644 --- a/types/set.go +++ b/types/set.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package types import ( diff --git a/types/state.go b/types/state.go index 46b926496..6a23843cb 100644 --- a/types/state.go +++ b/types/state.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package types import ( diff --git a/types/stream.go b/types/stream.go index 75865c7bd..1f94685ad 100644 --- a/types/stream.go +++ b/types/stream.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package types import ( diff --git a/types/stream_configured.go b/types/stream_configured.go index 804a9d120..3e793d497 100644 --- a/types/stream_configured.go +++ b/types/stream_configured.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package types import ( diff --git a/types/sync_mode.go b/types/sync_mode.go index c4fc707f1..bd14de032 100644 --- a/types/sync_mode.go +++ b/types/sync_mode.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package types type SyncMode string diff --git a/types/type_schema.go b/types/type_schema.go index bb410369f..528f17b85 100644 --- a/types/type_schema.go +++ b/types/type_schema.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package types import ( diff --git a/utils/concurrent.go b/utils/concurrent.go index 177b5cd45..62e4638d4 100644 --- a/utils/concurrent.go +++ b/utils/concurrent.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package utils import ( diff --git a/utils/decryption.go b/utils/decryption.go index 0d58a01f7..51d9eb2fa 100644 --- a/utils/decryption.go +++ b/utils/decryption.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package utils import ( diff --git a/utils/error.go b/utils/error.go index d18926082..80848baeb 100644 --- a/utils/error.go +++ b/utils/error.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package utils import ( diff --git a/utils/flatten/flatten.go b/utils/flatten/flatten.go index 34a6e4766..a614623aa 100644 --- a/utils/flatten/flatten.go +++ b/utils/flatten/flatten.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package flatten import ( diff --git a/utils/logger/logger.go b/utils/logger/logger.go index 1155a5b42..c25e3a2aa 100644 --- a/utils/logger/logger.go +++ b/utils/logger/logger.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package logger import ( diff --git a/utils/memory.go b/utils/memory.go index fe3099149..4002053eb 100644 --- a/utils/memory.go +++ b/utils/memory.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package utils import ( diff --git a/utils/safego/safego.go b/utils/safego/safego.go index 1becac39c..34ba6e724 100644 --- a/utils/safego/safego.go +++ b/utils/safego/safego.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package safego import ( diff --git a/utils/ssl.go b/utils/ssl.go index a05f2a846..33aae9585 100644 --- a/utils/ssl.go +++ b/utils/ssl.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package utils import "errors" diff --git a/utils/telemetry/telemetry.go b/utils/telemetry/telemetry.go index c77d3f959..422387727 100644 --- a/utils/telemetry/telemetry.go +++ b/utils/telemetry/telemetry.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package telemetry import ( diff --git a/utils/testutils/test_schema.go b/utils/testutils/test_schema.go index 87502290f..177c683c4 100644 --- a/utils/testutils/test_schema.go +++ b/utils/testutils/test_schema.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package testutils // GlobalTypeToDataType maps database-specific types (Postgres/MySQL) to internal standard types diff --git a/utils/testutils/test_utils.go b/utils/testutils/test_utils.go index 591d47877..87dc7fb60 100644 --- a/utils/testutils/test_utils.go +++ b/utils/testutils/test_utils.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package testutils import ( diff --git a/utils/typeutils/compare.go b/utils/typeutils/compare.go index 3e8349962..bc8d98c6c 100644 --- a/utils/typeutils/compare.go +++ b/utils/typeutils/compare.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package typeutils import "github.com/datazip-inc/olake/utils" diff --git a/utils/typeutils/datatype.go b/utils/typeutils/datatype.go index b97099129..847d21d85 100644 --- a/utils/typeutils/datatype.go +++ b/utils/typeutils/datatype.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package typeutils import ( diff --git a/utils/typeutils/fields.go b/utils/typeutils/fields.go index 83a244fea..269f06441 100644 --- a/utils/typeutils/fields.go +++ b/utils/typeutils/fields.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package typeutils import ( diff --git a/utils/typeutils/flatten.go b/utils/typeutils/flatten.go index 47714ca70..ae012b630 100644 --- a/utils/typeutils/flatten.go +++ b/utils/typeutils/flatten.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package typeutils import ( diff --git a/utils/typeutils/reformat.go b/utils/typeutils/reformat.go index 1f83833c1..a250e58d2 100644 --- a/utils/typeutils/reformat.go +++ b/utils/typeutils/reformat.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package typeutils import ( diff --git a/utils/typeutils/resolver.go b/utils/typeutils/resolver.go index ed7e90238..73b681124 100644 --- a/utils/typeutils/resolver.go +++ b/utils/typeutils/resolver.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package typeutils import "github.com/datazip-inc/olake/types" diff --git a/utils/typeutils/time.go b/utils/typeutils/time.go index d0b1f51d0..861df4bbd 100644 --- a/utils/typeutils/time.go +++ b/utils/typeutils/time.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package typeutils import ( diff --git a/utils/utils.go b/utils/utils.go index 0ced08488..2435850e0 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package utils import ( diff --git a/utils/validation.go b/utils/validation.go index c1bdae397..c2f33fcba 100644 --- a/utils/validation.go +++ b/utils/validation.go @@ -1,3 +1,19 @@ +/* + * Copyright 2025 Olake By Datazip + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package utils import (