database

package
v0.0.0-...-91e90d9 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTable

func CreateTable(db *sql.DB)

CreateTable creates student table if not existing in current database

func GetStudentsFrom

func GetStudentsFrom(db *sql.DB, city, promotion *string) []models.Student

GetStudentsFrom retrieve students by their Promotion and City Orders them by their Bachelor's gpa if they are in Tek[1,2,3,4] and the Master one if they are in Tek5

func Init

func Init(path string) (*sql.DB, error)

Init database

func InsertData

func InsertData(db *sql.DB, students []models.Student) error

InsertData insert students in database Replace existing value with new one if present

Types

This section is empty.

Jump to

Keyboard shortcuts

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