Kinda Code
Home/Flutter/Page 31

Flutter

Flutter and Dart tutorials, tips & tricks
TypeORM Upsert: Update If Exists, Create If Not Exists

TypeORM Upsert: Update If Exists, Create If Not Exists

Updated: Sep 20, 2022
Upsert (this term is combined from two words: update and insert) is a database operation that updates a record it already exists in a table. Otherwise, insert a new row if that record doesn’t exist. This succinct, practical......
How to reset Docker Desktop

How to reset Docker Desktop

Updated: Sep 11, 2022
To reset your Docker Desktop, just follow a few easy steps below. Warning: All your local containers and images will be destroyed. All your settings, including your sign-in information, will be cleared. 1. Open your Docker Desktop......
Docker Desktop system requirements (Windows, macOS)

Docker Desktop system requirements (Windows, macOS)

Updated: Sep 11, 2022
Before installing Docker Desktop for Windows or macOS, just check the system requirements listed below to ensure your computer is competent to run it. Windows Minimum system requirements OS: Windows 10 64-bit: Home or Pro......
How to Delete Docker Images on your System

How to Delete Docker Images on your System

Updated: Sep 11, 2022
Overview If there are some pulled images that are no longer needed, then you can remove them from your system to free up your storage with the following command: docker image rm rm stands for remove. One important thing......
How to Get  the Size of a Docker Image

How to Get the Size of a Docker Image

Updated: Sep 11, 2022
This article shows you how to determine the size of a Docker image that is hosted on Docker Hub or a Docker image that was pulled to your local system. Docker Hub’s Images Go to the page of the image you want to know the size,......
How to Check Docker Desktop and Docker Engine Versions

How to Check Docker Desktop and Docker Engine Versions

Updated: Sep 11, 2022
This concise article shows you how to check your Docker Desktop and Docker Engine versions (note that they are different numbers). Without any further ado (like talking about the history of the universe or why you should use Docker), let......
TypeORM: Get Raw SQL Query from QueryBuilder

TypeORM: Get Raw SQL Query from QueryBuilder

Updated: Sep 07, 2022
When communicating with databases through TypeORM, you can get raw SQL queries produced by query builders by using the getQuery() or getSql() methods (you can use them synchronously without the await keyword). Example: const......
TypeORM: How to Use Column Alias when Querying Data

TypeORM: How to Use Column Alias when Querying Data

Updated: Sep 07, 2022
This succinct tutorial shows you how to use column aliases to assign temporary names to columns when selecting data with TypeORM. The point here is the AS keyword. Let’s study a couple of examples for more clarity. User......
TypeORM: Selecting DISTINCT Values

TypeORM: Selecting DISTINCT Values

Updated: Sep 05, 2022
In real life, it’s possible that a column contains many duplicate values. However, there might be occasions when you only want to get different (unique) values. If you’ve worked with MySQL or PostgreSQL, you are very likely......
TypeORM: Counting Records in One-To-Many Relation

TypeORM: Counting Records in One-To-Many Relation

Updated: Sep 04, 2022
When communicating with the database through TypeORM, there will be many cases where you need to count records in a one-to-many relationship, such as: You want to list the users and the number of photos belonging to each person You......
TypeORM: Using LIKE Operator (2 Examples)

TypeORM: Using LIKE Operator (2 Examples)

Updated: Sep 04, 2022
In TypeORM, the Like operator (with the percent sign %) is used to search for a specified pattern in a column. This concise article walks you through 2 examples of selecting data with the Like operator in 2 different ways: Using the......
TypeORM: Select the Most Recent Record (2 Examples)

TypeORM: Select the Most Recent Record (2 Examples)

Updated: Sep 04, 2022
This short article walks you through 2 examples of selecting the latest record from a table using TypeORM. The first example uses the findOne() method, while the second one uses a query builder. Using the findOne() method This......