db

package
v0.0.0-...-9c67b44 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SqlStoreIndexDocsTemplate = `` /* 252-byte string literal not displayed */

	SqlMarkIndexDocForDeletion = `
		UPDATE index_docs SET reindex_at=?, deleted_at=?
		WHERE id=?;`

	SqlMarkAllDocsForReindexing = `
		UPDATE index_docs SET reindex_at=?;
	`

	SqlMarkDocsForReindexing = `
		UPDATE index_docs SET reindex_at=?
		WHERE target_idx = ?;
	`

	// Koha collector queries
	SqlSelectCachedBiblios = `
        SELECT id, metadata
        FROM koha_cache
		WHERE type = 'biblio';`

	SqlSelectPubsToReindex = `
		SELECT id
		FROM index_docs
		WHERE target_idx='publication'
		AND id IN (%s);`

	SqlStoreKohaDocBatch = `` /* 188-byte string literal not displayed */

	SqlMarkPubsForReindexing = `
		UPDATE index_docs
		SET reindex_at=NOW()
		WHERE target_idx='publication'
		AND id IN (%s);`

	// TODO: check against updated_at
	SqlBiblioStats = `` /* 550-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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