SQLConn

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 9 Imported by: 0

README

SQLConn

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLConn

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

func (*SQLConn) Connect

func (sqlc *SQLConn) Connect(url string) (err error)

"root:@(127.0.0.1:3306)/arxivInfo?parseTime=true"

func (*SQLConn) CreateTable

func (sqlc *SQLConn) CreateTable() error

func (*SQLConn) PutAllTopics

func (sqlc *SQLConn) PutAllTopics(mysqlUrl string) error

func (*SQLConn) PutToTable

func (sqlc *SQLConn) PutToTable(topic string) error

topic := "cs.ai"

func (*SQLConn) QueryHash

func (sqlc *SQLConn) QueryHash(hash string) (bool, error)

func (*SQLConn) QueryTitleAuthorsSummaryId

func (sqlc *SQLConn) QueryTitleAuthorsSummaryId(topic string, date string) ([]byte, error)

type TiAuSuId

type TiAuSuId struct {
	Title   string `json:"title"`
	Authors string `json:"authors"`
	Summary string `json:"summary"`
	Id      string `json:"url"`
}

Jump to

Keyboard shortcuts

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