sql

package
v0.0.0-...-983604d Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2017 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func (*Store) Close

func (s *Store) Close() error

Close SQLite3 database used by piken.

func (*Store) CountUnicodeData

func (s *Store) CountUnicodeData() int

Count total rows inside unicode data table.

func (*Store) CreateLastUpdate

func (s *Store) CreateLastUpdate(filename string, t time.Time) error

Create latest update entry for given file.

func (*Store) DeleteUnicodeData

func (s *Store) DeleteUnicodeData() error

DeleteUnicodeData removes all data from unicode_data table.

func (*Store) GetLastUpdate

func (s *Store) GetLastUpdate(filename string) (time.Time, error)

Get latest update for given file.

func (*Store) LoadFromRecords

func (s *Store) LoadFromRecords(records [][]string) error

Load multiple records into piken database.

func (*Store) Open

func (s *Store) Open(database string) error

Open SQLite 3 database used by piken or create it if it doesn't exist yet.

func (*Store) SearchUnicode

func (s *Store) SearchUnicode(name string) (records []UnicodeData, err error)

Search unicode data using name.

func (*Store) UpdateLastUpdate

func (s *Store) UpdateLastUpdate(filename string, t time.Time) error

UpdateLastUpdate updates date entry for given file.

type UnicodeData

type UnicodeData struct {
	CodePoint              string
	Name                   string
	Category               string
	CanonicalClass         string
	BidiClass              string
	DecompositionType      string
	NumericType            string
	NumericDigit           string
	NumericValue           string
	BidiMirrored           string
	Unicode1Name           string
	ISOComment             string
	SimpleUppercaseMapping string
	SimpleLowercaseMapping string
	SimpleTitlecaseMapping string
}

Jump to

Keyboard shortcuts

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