You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
owncast/db
John Regan a703df5182
Check if proposed name change is an API name (#3256)
8 months ago
..
README.md Social features / ActivityPub federation (#1629) 2 years ago
db.go Add support for changing user color in name modal. Closes #1805 2 years ago
models.go Add support for changing user color in name modal. Closes #1805 2 years ago
query.sql Check if proposed name change is an API name (#3256) 8 months ago
query.sql.go Check if proposed name change is an API name (#3256) 8 months ago
schema.sql Add user detail API + modal. Closes #2002 2 years ago

README.md

SQL Queries

sqlc generates type-safe code from SQL. Here's how it works:

  1. You define the schema in schema.sql.
  2. You write your queries in query.sql using regular SQL.
  3. You run sqlc generate to generate Go code with type-safe interfaces to those queries.
  4. You write application code that calls the generated code.

Only those who need to create or update SQL queries will need to have sqlc installed on their system. It is not a dependency required to build the codebase.

Install sqlc

Snap

sudo snap install sqlc

Go install

go install github.com/kyleconroy/sqlc/cmd/sqlc@latest

macOS

brew install sqlc

Download a release

Visit https://github.com/kyleconroy/sqlc/releases to download a release for your environment.