pathsqlx

package module
v0.0.0-...-f75001b Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: MIT Imports: 8 Imported by: 1

README

pathsqlx

The path engine implementations in Go for PathQL (see: PathQL.org).

Requirements
  • Go 1.11 or higher (uses go modules)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByRevLen

type ByRevLen []string

ByRevLen is for reverse length-based sort.

func (ByRevLen) Len

func (a ByRevLen) Len() int

func (ByRevLen) Less

func (a ByRevLen) Less(i, j int) bool

func (ByRevLen) Swap

func (a ByRevLen) Swap(i, j int)

type DB

type DB struct {
	*sqlx.DB
}

DB is a wrapper around sqlx.DB

func Create

func Create(user, password, dbname, driver, host, port string) (*DB, error)

Create a pathsqlx connection

func (*DB) PathQuery

func (db *DB) PathQuery(query string, arg interface{}) (interface{}, error)

PathQuery is the query that returns nested paths

Jump to

Keyboard shortcuts

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