makemandb/*: fix spelling of database and consistency of SQLite

This commit is contained in:
gutteridge 2022-09-11 20:32:37 +00:00
parent 927269fa51
commit 6f0eae4436
8 changed files with 23 additions and 23 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: apropos-utils.3,v 1.4 2016/05/24 18:06:42 abhinav Exp $
.\" $NetBSD: apropos-utils.3,v 1.5 2022/09/11 20:32:37 gutteridge Exp $
.\"
.\" Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>
.\" All rights reserved.
@ -49,7 +49,7 @@ These functions all live in the
header file.
They operate on
.Pa /var/db/man.db
which is an Sqlite database containing a full text search index of the manual
which is an SQLite database containing a full text search index of the manual
pages.
The functions provide an easy to use interface to query the database and
develop applications on top of it.

View File

@ -1,4 +1,4 @@
/* $NetBSD: apropos-utils.c,v 1.49 2022/05/19 04:08:03 gutteridge Exp $ */
/* $NetBSD: apropos-utils.c,v 1.50 2022/09/11 20:32:37 gutteridge Exp $ */
/*-
* Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>
* All rights reserved.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: apropos-utils.c,v 1.49 2022/05/19 04:08:03 gutteridge Exp $");
__RCSID("$NetBSD: apropos-utils.c,v 1.50 2022/09/11 20:32:37 gutteridge Exp $");
#include <sys/queue.h>
#include <sys/stat.h>
@ -241,7 +241,7 @@ out:
/*
* zip --
* User defined Sqlite function to compress the FTS table
* User defined SQLite function to compress the FTS table
*/
static void
zip(sqlite3_context *pctx, int nval, sqlite3_value **apval)
@ -262,7 +262,7 @@ zip(sqlite3_context *pctx, int nval, sqlite3_value **apval)
/*
* unzip --
* User defined Sqlite function to uncompress the FTS table.
* User defined SQLite function to uncompress the FTS table.
*/
static void
unzip(sqlite3_context *pctx, int nval, sqlite3_value **apval)
@ -459,7 +459,7 @@ error:
/*
* rank_func --
* Sqlite user defined function for ranking the documents.
* SQLite user defined function for ranking the documents.
* For each phrase of the query, it computes the tf and idf and adds them over.
* It computes the final rank, by multiplying tf and idf together.
* Weight of term t for document d = (term frequency of t in d *

View File

@ -1,4 +1,4 @@
.\" $NetBSD: close_db.3,v 1.2 2016/05/24 18:06:42 abhinav Exp $
.\" $NetBSD: close_db.3,v 1.3 2022/09/11 20:32:37 gutteridge Exp $
.\"
.\" Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>
.\" All rights reserved.
@ -50,7 +50,7 @@ and release any resources being used by it safely.
.Sh FILES
.Bl -hang -width /var/db/man.db -compact
.It Pa /var/db/man.db
The Sqlite FTS database which contains an index of the manual pages.
The SQLite FTS database which contains an index of the manual pages.
.El
.Sh SEE ALSO
.Xr apropos-utils 3 ,

View File

@ -1,4 +1,4 @@
.\" $NetBSD: init_db.3,v 1.3 2016/05/24 18:06:42 abhinav Exp $
.\" $NetBSD: init_db.3,v 1.4 2022/09/11 20:32:37 gutteridge Exp $
.\"
.\" Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>
.\" All rights reserved.
@ -45,7 +45,7 @@ The
function will try to initialize a connection to
.Pa man.db
which is an
Sqlite database and return a pointer to a sqlite3 structure.
SQLite database and return a pointer to a sqlite3 structure.
The connection should subsequentially be closed by calling
.Fn close_db
which will also release any resources being used by it.
@ -88,7 +88,7 @@ will be returned.
.Sh FILES
.Bl -hang -width /etc/man.conf -compact
.It Pa /etc/man.conf
The location of the Sqlite FTS database can be configured using the
The location of the SQLite FTS database can be configured using the
.Cd _mandb
tag.
.El

View File

@ -1,4 +1,4 @@
.\" $NetBSD: makemandb.8,v 1.10 2016/06/18 06:36:18 abhinav Exp $
.\" $NetBSD: makemandb.8,v 1.11 2022/09/11 20:32:37 gutteridge Exp $
.\"
.\" Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>
.\" All rights reserved.
@ -46,7 +46,7 @@ The
utility traverses the directories containing man pages, parses the manual
pages with the help of
.Xr mandoc 3
and builds an Sqlite database
and builds an SQLite database
to support full text searches by
.Xr apropos 1 .
It obtains the list of directories to traverse using the
@ -112,7 +112,7 @@ page is relevant.
.Sh FILES
.Bl -hang -width /etc/man.conf -compact
.It Pa /etc/man.conf
The location of the Sqlite FTS database can be configured using the
The location of the SQLite FTS database can be configured using the
.Cd _mandb
tag.
.El

View File

@ -1,4 +1,4 @@
/* $NetBSD: makemandb.c,v 1.63 2022/06/06 07:41:23 skrll Exp $ */
/* $NetBSD: makemandb.c,v 1.64 2022/09/11 20:32:37 gutteridge Exp $ */
/*
* Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
@ -17,7 +17,7 @@
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: makemandb.c,v 1.63 2022/06/06 07:41:23 skrll Exp $");
__RCSID("$NetBSD: makemandb.c,v 1.64 2022/09/11 20:32:37 gutteridge Exp $");
#include <sys/stat.h>
#include <sys/types.h>
@ -696,7 +696,7 @@ update_existing_entry(sqlite3 *db, const char *file, const char *hash,
* Does an incremental updation of the database by checking the file_cache.
* It parses and adds the pages which are present in file_cache,
* but not in the database.
* It also removes the pages which are present in the databse,
* It also removes the pages which are present in the database,
* but not in the file_cache.
*/
static void
@ -1454,7 +1454,7 @@ man_parse_section(enum man_sec sec, const struct roff_node *n, mandb_rec *rec)
/*
* insert_into_db --
* Inserts the parsed data of the man page in the Sqlite databse.
* Inserts the parsed data of the man page in the SQLite database.
* If any of the values is NULL, then we cleanup and return -1 indicating
* an error.
* Otherwise, store the data in the database and return 0.

View File

@ -1,4 +1,4 @@
.\" $NetBSD: run_query.3,v 1.4 2016/05/24 18:06:42 abhinav Exp $
.\" $NetBSD: run_query.3,v 1.5 2022/09/11 20:32:37 gutteridge Exp $
.\"
.\" Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>
.\" All rights reserved.
@ -161,7 +161,7 @@ function will return 0 and in case of an error \-1 will be returned.
.Sh FILES
.Bl -hang -width /var/db/man.db -compact
.It Pa /var/db/man.db
The Sqlite FTS database which contains an index of the manual pages.
The SQLite FTS database which contains an index of the manual pages.
.El
.Sh EXAMPLES
Following is a code excerpt of how

View File

@ -1,4 +1,4 @@
.\" $NetBSD: whatis.1,v 1.4 2016/06/16 14:07:16 abhinav Exp $
.\" $NetBSD: whatis.1,v 1.5 2022/09/11 20:32:37 gutteridge Exp $
.\"
.\" Copyright (c) 2012 Joerg Sonnenberger <joerg@NetBSD.org>
.\" All rights reserved.
@ -58,7 +58,7 @@ configuration file than the default,
.Sh FILES
.Bl -hang -width /etc/man.conf -compact
.It Pa /etc/man.conf
The location of the Sqlite FTS database can be configured using the
The location of the SQLite FTS database can be configured using the
.Cd _mandb
tag.
.El