operations

package
v0.0.0-...-36dbddc Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKeySpace

func CreateKeySpace(keyspace string, session *gocql.Session)

CreateKeySpace creates a keyspace

func CreateUserTable

func CreateUserTable(keyspace, table string, session *gocql.Session)

CreateUserTable creates a table

func DropKeySpaceIfExists

func DropKeySpaceIfExists(keyspace string, session *gocql.Session)

DropKeySpaceIfExists drops keyspace if it exists

func ExecWithRequestCharge

func ExecWithRequestCharge(q *gocql.Query) (float64, error)

func FindAllUsers

func FindAllUsers(keyspace, table string, session *gocql.Session) ([]model.User, float64)

FindAllUsers gets all users

func FindUser

func FindUser(keyspace, table string, id int, session *gocql.Session) (model.User, float64)

FindUser with request charge

func Float64frombytes

func Float64frombytes(bytes []byte) float64

func InsertUser

func InsertUser(keyspace, table string, session *gocql.Session, user model.User) (float64, time.Duration, error)

InsertUser creates an entry(row) in a table

func RequestChargeFromIter

func RequestChargeFromIter(iter *gocql.Iter) float64

func ScanWithRequestCharge

func ScanWithRequestCharge(q *gocql.Query, dest ...interface{}) (float64, error)

RequestCharge Helpers

Types

This section is empty.

Jump to

Keyboard shortcuts

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