Take control over your live stream video by running it yourself. Streaming + chat out of the box.
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.
 
 
 
 
 
 
Gabe Kangas 659a19bf2c
WIP refactored all storage into repos. Tests pass.
2 years ago
..
README.md WIP refactored all storage into repos. Tests pass. 2 years ago
db.go WIP refactored all storage into repos. Tests pass. 2 years ago
initialize.go WIP refactored all storage into repos. Tests pass. 2 years ago
migrations.go WIP refactored all storage into repos. Tests pass. 2 years ago
models.go WIP refactored all storage into repos. Tests pass. 2 years ago
query.sql WIP refactored all storage into repos. Tests pass. 2 years ago
query.sql.go WIP refactored all storage into repos. Tests pass. 2 years ago
schema.go WIP refactored all storage into repos. Tests pass. 2 years ago
schema.sql WIP refactored all storage into repos. Tests pass. 2 years ago
utils.go WIP refactored all storage into repos. Tests pass. 2 years ago

README.md

SQL Storage

This package contains the base SQL schema, migrations and queries. It should not need to be imported by any package other than the datstore.

SQL Migrations

Add migrations to migrations.go and use raw SQL make your required changes between schema versions.

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.