example-ent-crdb

command module
v0.0.0-...-e91a8f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 2 Imported by: 0

README

Example Ent + CRDB

An example usage of Ent with CockroachDB.

This server partially recreates the Movr demo dataset.

Setup

Get Golang and Just in your PATH:

go version
# 1.19.5

just --version
# 1.11.0

You also need CRDB on SQL port 26257, user root, no password, no TLS.
One way to do that is:

# Clean slate
rm -rf cdb-data
mkdir cdb-data

# Host networking, local state, no TLS
podman run -it --rm --net=host -v "${PWD}/cdb-data:/cockroach/cockroach-data" cockroachdb/cockroach:v22.2.3 start-single-node --insecure

Usage

just run

Binds to port 9000.

Check the justfile for other options.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL