SQLConn

package module
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 14 Imported by: 0

README

SQLConn

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomTopicRet added in v0.0.7

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

type SQLConn

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

1) sqlc := new(SQLConn) 2) sqlc.Connect() 3) sqlc.CreateTable() 4) sqlc.PutAllTopics()

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(filename string) error

func (*SQLConn) PutToTable

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

topic := "cs.ai"

func (*SQLConn) QueryCustomTopicFromArxiv added in v0.0.7

func (sqlc *SQLConn) QueryCustomTopicFromArxiv(custom string) ([]byte, error)

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 SendGoogleMessage added in v0.0.11

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

func (*SendGoogleMessage) Init added in v0.0.11

func (sgm *SendGoogleMessage) Init(filename string) error

type TiAuSuId

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

Query filed from db/topicSummary

Jump to

Keyboard shortcuts

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