Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Latest commit

 

History

History
23 lines (18 loc) · 550 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 550 Bytes

start local single node crdb instance by running...

./up.sh

run the following to build and execute the test...

./mvnw clean spring-boot:run

the application automatically creates the database schema using JPA. A table called Aircraft will be created with the following sql...

CREATE TABLE public.aircraft (
  id UUID NOT NULL,
  location GEOMETRY NULL,
  CONSTRAINT "primary" PRIMARY KEY (id ASC),
  FAMILY "primary" (id, location)
)

once the database is created a simple insert of the geometry data type is completed.