Skip to content

Instantly share code, notes, and snippets.

@agiri23
Last active March 21, 2022 15:44
Show Gist options
  • Save agiri23/7f352d5df375cce6fcf5c698caf4c4f0 to your computer and use it in GitHub Desktop.
Save agiri23/7f352d5df375cce6fcf5c698caf4c4f0 to your computer and use it in GitHub Desktop.
{
"source": {
"server": "dbserver1"
},
"position": {
"ts_sec": 1647635980,
"file": "binlog.000004",
"pos": 157,
"snapshot": true
},
"databaseName": "debezium",
"ddl": "CREATE TABLE `customers` (\n `id` int NOT NULL,\n `first_name` varchar(45) DEFAULT NULL,\n `last_name` varchar(45) DEFAULT NULL,\n `email` varchar(45) DEFAULT NULL,\n `mobile` int DEFAULT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci",
"tableChanges": [{
"type": "CREATE",
"id": "\"debezium\".\"customers\"",
"table": {
"defaultCharsetName": "utf8mb4",
"primaryKeyColumnNames": ["id"],
"columns": [{
"name": "id",
"jdbcType": 4,
"typeName": "INT",
"typeExpression": "INT",
"charsetName": null,
"position": 1,
"optional": false,
"autoIncremented": false,
"generated": false,
"comment": null,
"hasDefaultValue": false,
"enumValues": []
}, {
"name": "first_name",
"jdbcType": 12,
"typeName": "VARCHAR",
"typeExpression": "VARCHAR",
"charsetName": "utf8mb4",
"length": 45,
"position": 2,
"optional": true,
"autoIncremented": false,
"generated": false,
"comment": null,
"hasDefaultValue": true,
"enumValues": []
}, {
"name": "last_name",
"jdbcType": 12,
"typeName": "VARCHAR",
"typeExpression": "VARCHAR",
"charsetName": "utf8mb4",
"length": 45,
"position": 3,
"optional": true,
"autoIncremented": false,
"generated": false,
"comment": null,
"hasDefaultValue": true,
"enumValues": []
}, {
"name": "email",
"jdbcType": 12,
"typeName": "VARCHAR",
"typeExpression": "VARCHAR",
"charsetName": "utf8mb4",
"length": 45,
"position": 4,
"optional": true,
"autoIncremented": false,
"generated": false,
"comment": null,
"hasDefaultValue": true,
"enumValues": []
}, {
"name": "mobile",
"jdbcType": 4,
"typeName": "INT",
"typeExpression": "INT",
"charsetName": null,
"position": 5,
"optional": true,
"autoIncremented": false,
"generated": false,
"comment": null,
"hasDefaultValue": true,
"enumValues": []
}]
},
"comment": null
}]
} {
"source": {
"server": "dbserver1"
},
"position": {
"ts_sec": 1647635980,
"file": "binlog.000004",
"pos": 157,
"snapshot": true
},
"databaseName": "debezium",
"ddl": "CREATE TABLE `orders` (\n `order_id` int NOT NULL,\n `order_date` varchar(45) DEFAULT NULL,\n `order_category` varchar(45) DEFAULT NULL,\n PRIMARY KEY (`order_id`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci",
"tableChanges": [{
"type": "CREATE",
"id": "\"debezium\".\"orders\"",
"table": {
"defaultCharsetName": "utf8mb4",
"primaryKeyColumnNames": ["order_id"],
"columns": [{
"name": "order_id",
"jdbcType": 4,
"typeName": "INT",
"typeExpression": "INT",
"charsetName": null,
"position": 1,
"optional": false,
"autoIncremented": false,
"generated": false,
"comment": null,
"hasDefaultValue": false,
"enumValues": []
}, {
"name": "order_date",
"jdbcType": 12,
"typeName": "VARCHAR",
"typeExpression": "VARCHAR",
"charsetName": "utf8mb4",
"length": 45,
"position": 2,
"optional": true,
"autoIncremented": false,
"generated": false,
"comment": null,
"hasDefaultValue": true,
"enumValues": []
}, {
"name": "order_category",
"jdbcType": 12,
"typeName": "VARCHAR",
"typeExpression": "VARCHAR",
"charsetName": "utf8mb4",
"length": 45,
"position": 3,
"optional": true,
"autoIncremented": false,
"generated": false,
"comment": null,
"hasDefaultValue": true,
"enumValues": []
}]
},
"comment": null
}]
} {
"source": {
"server": "dbserver1"
},
"position": {
"transaction_id": null,
"ts_sec": 1647637710,
"file": "binlog.000004",
"pos": 489,
"server_id": 1
},
"databaseName": "debezium",
"ddl": "CREATE TABLE `debezium`.`product` (\n `product_id` INT NOT NULL,\n `product_name` VARCHAR(45) NULL,\n `product_price` VARCHAR(45) NULL,\n PRIMARY KEY (`product_id`))",
"tableChanges": [{
"type": "CREATE",
"id": "\"debezium\".\"product\"",
"table": {
"defaultCharsetName": "utf8mb4",
"primaryKeyColumnNames": ["product_id"],
"columns": [{
"name": "product_id",
"jdbcType": 4,
"typeName": "INT",
"typeExpression": "INT",
"charsetName": null,
"position": 1,
"optional": false,
"autoIncremented": false,
"generated": false,
"comment": null,
"hasDefaultValue": false,
"enumValues": []
}, {
"name": "product_name",
"jdbcType": 12,
"typeName": "VARCHAR",
"typeExpression": "VARCHAR",
"charsetName": "utf8mb4",
"length": 45,
"position": 2,
"optional": true,
"autoIncremented": false,
"generated": false,
"comment": null,
"hasDefaultValue": true,
"enumValues": []
}, {
"name": "product_price",
"jdbcType": 12,
"typeName": "VARCHAR",
"typeExpression": "VARCHAR",
"charsetName": "utf8mb4",
"length": 45,
"position": 3,
"optional": true,
"autoIncremented": false,
"generated": false,
"comment": null,
"hasDefaultValue": true,
"enumValues": []
}]
},
"comment": null
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment