Open in app

Sign In

Write

Sign In

Vivek Singh
Vivek Singh

187 Followers

Home

About

Dec 20, 2022

Am struggling with rollback. I can't find it in the article
2

Kennedy Mwenda

Also, you can check my Git Project based on this article :

Also, you can check my Git Project based on this article : https://github.com/Viveksingh1313/liquibase-springboot/blob/dev/src/main/resources/dblogs/changelog/changes/1-create-info-table-changelog.sql I am creating a table and rolling it back in case of any error during creation in above example. A better used case to get you started - You can have multiple sql statements instead of just one - like creating a table, creating primary keys, and then also inserting data into the table. If any of the statements fail, you can drop the table as a rollback step.

1 min read

1 min read

Also, you can check my Git Project based on this article :

https://github.com/Viveksingh1313/liquibase-springboot/blob/dev/src/main/resources/dblogs/changelog/changes/1-create-info-table-changelog.sql

I am creating a table and rolling it back in case of any error during creation in above example.

A better used case to get you started - You can have multiple sql statements instead of just one - like creating a table, creating primary keys, and then also inserting data into the table. If any of the statements fail, you can drop the table as a rollback step.

The above link has the usage of rollback. It's very minimal and basic. Not sure if it would help your use case , however looks like a good starting point.

--

--


Published in Javarevisited

·Oct 12, 2022

Understanding Garbage Collection Algorithms in Java

What is a Garbage Collector ? A Garbage collector(GC) is a component in JVM which governs the heap of your application. It takes care of allocating memory to objects, destroying them to make space for allocating more objects. A heap is a chunk of memory which is shared among all…

Java

8 min read

Understanding Garbage Collection Algorithms in Java
Understanding Garbage Collection Algorithms in Java
Java

8 min read


Sep 23, 2022

I Finally Gave up On Java
309
39

Josef Cruz

To be very honest, this article doesn't make sense at all.

To be very honest, this article doesn't make sense at all. The first thing - you were hinting at how c# is better than Java. If I was doing that, I would go ahead pick a point - and then describe how Java is bad and C# handles it better(or…

2 min read

2 min read


Published in Javarevisited

·Sep 5, 2022

Liquibase with SpringBoot

We will be building an application which uses Liquibase as the Data Migration tool. — Git Code Link : https://github.com/Viveksingh1313/liquibase-springboot Liquibase Liquibase is used to evolve the database schema. Database migration tools helps track, version control, and automate DB schema changes across environments. With the rise of Agile and DevOps methodologies that are needed to accomplish continuous integration and deployment, it’s more important than ever to…

Liquibase

6 min read

Liquibase with SpringBoot
Liquibase with SpringBoot
Liquibase

6 min read


Published in AWS Tip

·Sep 1, 2022

AWS ECR — Push Container Images

What is AWS ECR ? — Elastic Container Registry is an AWS managed container image registry service that is used to manage container images. Just like you have GitHub to manage your codebase, you have AWS ECR to manage your container images. AWS ECR supports both private and public repositories. Private repositories can be managed by…

Docker

4 min read

AWS ECR — Push Container Images
AWS ECR — Push Container Images
Docker

4 min read


Aug 25, 2022

Find the Longest Palindromic Substring

Find the Longest Palindromic Substring LeetCode question : https://leetcode.com/problems/longest-palindromic-substring/ Solution : Iterative approach Dynamic Programming Question Explanation : Given a string s, return the longest palindromic substring in s. Example 1: Input: s = "babad" Output: "bab" Explanation: "aba" is also a valid answer. Example 2: Input: s = "cbbd" Output…

Leetcode

5 min read

Leetcode

5 min read


Published in Nerd For Tech

·Aug 17, 2022

Upload file feature in SpringBoot

In this article, we will implement the file upload feature. We will create two endpoints which will upload and get the files respectively. The post request will upload the file. Post request can also be used as a put request. The get request will get the file. GitHub code available…

Multipart

3 min read

Upload file feature in SpringBoot
Upload file feature in SpringBoot
Multipart

3 min read


Jul 5, 2022

Max Pooling in CNNs

Max Pooling is used in Convolutional Neural Networks which is used to downsample an image to acquire spatial invariance. It is used after a convolutional layer and before the fully connected layer. Steps in a CNN : Feature maps : In convolutional neural networks, you look at an image through…

Max Pooling

4 min read

Max Pooling in CNNs
Max Pooling in CNNs
Max Pooling

4 min read


Jun 29, 2022

Basics of Apache Kafka

Git hub repo code and it’s explanation : This uses springboot, docker, docker-compose, kafka, and zookeeper to practically show producer producing messages and consumers consuming them from Kafka brokers. You can use the above links after you are clear on Kafka basics. Let’s start the main article on basics of…

Kafka

4 min read

Kafka

4 min read


Published in Towards Dev

·Jun 28, 2022

SpringBoot Kafka Tutorial With Code

You can check this article on Basics of Kafka by me before diving into code. Here is the Git Link to SpringBoot Kafka Tutorial. I have added a readme file and provided comments wherever needed in the Git repository. This tutorial has a producer application , a consumer application, kafka…

Kafka

4 min read

Kafka

4 min read

Vivek Singh

Vivek Singh

187 Followers

Software Developer. I write about Full Stack, NLP and Blockchain. Buy me a coffee - buymeacoffee.com/viveksinless

Following
  • Amardeep Parmar

    Amardeep Parmar

  • The Educative Team

    The Educative Team

  • Isaiah McCall

    Isaiah McCall

  • Shreya Badonia

    Shreya Badonia

  • javinpaul

    javinpaul

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech