sqlstructs

package
v0.0.0-...-8c09973 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

type Bar struct {
	Id              sql.NullInt64  `db:"id" json:"id"`
	FirebaseAuthUid sql.NullString `db:"firebase_auth_uid" json:"firebase_auth_uid"`
}

SELECT * FROM users LIMIT 5

type Foo

type Foo struct {
	FirebaseAuthUid sql.NullString `db:"firebase_auth_uid" json:"firebase_auth_uid"`
}

SELECT firebase_auth_uid FROM users LIMIT 5

type JoinExample

type JoinExample struct {
	Id              sql.NullInt64  `db:"id" json:"id"`
	FirebaseAuthUid sql.NullString `db:"firebase_auth_uid" json:"firebase_auth_uid"`
	Title           string         `db:"title" json:"title"`
}

SELECT users.*, title FROM users JOIN posts ON users.id = posts.id

type X

type X struct {
	Id sql.NullInt64 `db:"id" json:"id"`
}

SELECT id FROM users LIMIT 5

Jump to

Keyboard shortcuts

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