crud

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: BSD-2-Clause Imports: 10 Imported by: 0

README

Description

This is a simple CRUD CLI app implemented using picodata-go as the connector
to a Picodata database.

Usage

Export the environment variable:

export PICODATA_CONNECTION_URL='postgres://login:pass@host:port'

Set up a Picodata database. Create the necessary tables:

psql $PICODATA_CONNECTION_URL < migration.sql

Run the app:

go run main.go

Add a string value

add 'Pico data'

List items

list

Update an item by its id

update 1 'Learn more Go'

Delete an item by its id

remove 1

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