{
    "content": [
        {
            "type": "text",
            "text": "# sqlite (man)\n\n## NAME\n\nsqlite - A command line interface for SQLite\n\n## SYNOPSIS\n\nsqlite [options] filename [SQL]\nSUMMARY\nsqlite is a terminal-based front-end to the SQLite library. It enables you to type in queries\ninteractively, issue them to SQLite and see the results. Alternatively, you can  specify  SQL\ncode on the command-line. In addition it provides a number of meta-commands.\n\n## DESCRIPTION\n\nThis  manual page documents briefly the sqlite command.  This manual page was written for the\nDebian GNU/Linux distribution because the original program does not have a manual page.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (9 subsections)\n- **OUTPUT MODE**\n- **INIT FILE**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "sqlite",
        "section": "",
        "mode": "man",
        "summary": "sqlite - A command line interface for SQLite",
        "synopsis": "sqlite [options] filename [SQL]\nSUMMARY\nsqlite is a terminal-based front-end to the SQLite library. It enables you to type in queries\ninteractively, issue them to SQLite and see the results. Alternatively, you can  specify  SQL\ncode on the command-line. In addition it provides a number of meta-commands.",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Read in and process 'file', which contains \"dot commands\". You can use this file to initialize display settings."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Set output mode to 'column'."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Specify which output field separator for 'list' mode to use. Default is '|'."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "When a null is encountered, print 'string'. Default is no string."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Turn headers on or off. Default is off."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 73,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 2,
                "subsections": [
                    {
                        "name": "-init file",
                        "lines": 3
                    },
                    {
                        "name": "-html",
                        "lines": 1
                    },
                    {
                        "name": "-list",
                        "lines": 1
                    },
                    {
                        "name": "-line",
                        "lines": 1
                    },
                    {
                        "name": "-column",
                        "lines": 2
                    },
                    {
                        "name": "-separator",
                        "lines": 2
                    },
                    {
                        "name": "-nullvalue",
                        "lines": 2
                    },
                    {
                        "name": "-[no]header",
                        "lines": 2
                    },
                    {
                        "name": "-echo",
                        "lines": 1
                    }
                ]
            },
            {
                "name": "OUTPUT MODE",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "INIT FILE",
                "lines": 26,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "sqlite - A command line interface for SQLite\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "sqlite [options] filename [SQL]\n\nSUMMARY\nsqlite is a terminal-based front-end to the SQLite library. It enables you to type in queries\ninteractively, issue them to SQLite and see the results. Alternatively, you can  specify  SQL\ncode on the command-line. In addition it provides a number of meta-commands.\n\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This  manual page documents briefly the sqlite command.  This manual page was written for the\nDebian GNU/Linux distribution because the original program does not have a manual page.\n\nGETTING STARTED\nTo start the sqlite program, just type \"sqlite\" followed by the name the file that holds  the\nSQLite  database.  If the file does not exist, a new one is created automatically. The sqlite\nprogram will then prompt you to enter SQL. Type in SQL  statements  (terminated  by  a  semi‐\ncolon), press \"Enter\" and the SQL will be executed.\n\nFor  example,  to  create a new SQLite database named \"ex1\" with a single table named \"tbl1\",\nyou might do this:\n\n$ sqlite ex1\nSQLite version 2.0.0\nEnter \".help\" for instructions\nsqlite> create table tbl1(one varchar(10), two smallint);\nsqlite> insert into tbl1 values('hello!',10);\nsqlite> insert into tbl1 values('goodbye', 20);\nsqlite> select * from tbl1;\nhello!|10\ngoodbye|20\nsqlite>\n\n\n\nSQLITE META-COMMANDS\nMost of the time, sqlite just reads lines of input and passes them on to the  SQLite  library\nfor  execution.  But  if an input line begins with a dot (\".\"), then that line is intercepted\nand interpreted by the sqlite program itself. These \"dot  commands\"  are  typically  used  to\nchange the output format of queries, or to execute certain prepackaged query statements.\n\nFor a listing of the available dot commands, you can enter \".help\" at any time. For example:\n\nsqlite> .help\n.dump ?TABLE? ...      Dump the database in an text format\n.echo ON|OFF           Turn command echo on or off\n.exit                  Exit this program\n.explain ON|OFF        Turn output mode suitable for EXPLAIN on or off.\n\"off\" will revert to the output mode that was\npreviously in effect\n.header(s) ON|OFF      Turn display of headers on or off\n.help                  Show this message\n.indices TABLE         Show names of all indices on TABLE\n.mode MODE             Set mode to one of \"line(s)\", \"column(s)\",\n\"insert\", \"list\", or \"html\"\n.mode insert TABLE     Generate SQL insert statements for TABLE\n.nullvalue STRING      Print STRING instead of nothing for NULL data\n.output FILENAME       Send output to FILENAME\n.output stdout         Send output to the screen\n.prompt MAIN CONTINUE  Replace the standard prompts\n\"sqlite > \" and \"   ...> \"\nwith the strings MAIN and CONTINUE\nCONTINUE is optional.\n.quit                  Exit this program\n.read FILENAME         Execute SQL in FILENAME\n.reindex ?TABLE?       Rebuild indices\n.schema ?TABLE?        Show the CREATE statements\n.separator STRING      Change separator string for \"list\" mode\n.show                  Show the current values for the following:\n.echo\n.explain\n.mode\n.nullvalue\n.output\n.separator\n.width\n.tables ?PATTERN?      List names of tables matching a pattern\n.timeout MS            Try opening locked tables for MS milliseconds\n.width NUM NUM ...     Set column widths for \"column\" mode\nsqlite>\n\n\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "The program has the following options:\n",
                "subsections": [
                    {
                        "name": "-init file",
                        "content": "Read  in  and process 'file', which contains \"dot commands\".  You can use this file to\ninitialize display settings.\n"
                    },
                    {
                        "name": "-html",
                        "content": ""
                    },
                    {
                        "name": "-list",
                        "content": ""
                    },
                    {
                        "name": "-line",
                        "content": ""
                    },
                    {
                        "name": "-column",
                        "content": "Set output mode to 'column'.\n"
                    },
                    {
                        "name": "-separator",
                        "content": "Specify which output field separator for 'list' mode to use.  Default is '|'.\n"
                    },
                    {
                        "name": "-nullvalue",
                        "content": "When a null is encountered, print 'string'. Default is no string.\n"
                    },
                    {
                        "name": "-[no]header",
                        "content": "Turn headers on or off. Default is off.\n"
                    },
                    {
                        "name": "-echo",
                        "content": ""
                    }
                ]
            },
            "OUTPUT MODE": {
                "content": "The SQLite program has different output modes, which define the way the output (from queries)\nis formatted.\n\nIn  'list' mode, which is the default, one record per line is output, each field separated by\nthe separator specified with the -separator option or .separator command.\n\nIn 'line' mode, each column is output on its own line, records are separated by blank lines.\n\nIn HTML mode, an XHTML table is generated.\n\nIn 'column' mode, one record per line is output, aligned neatly in colums.\n\n",
                "subsections": []
            },
            "INIT FILE": {
                "content": "sqlite can be initialized using resource files. These can be combined with command line argu‐\nments to set up sqlite exactly the way you want it.  Initialization proceeds as follows:\n\no The defaults of\n\n\nmode            = LIST\nseparator       = \"|\"\nmain prompt     = \"sqlite> \"\ncontinue prompt = \"   ...> \"\n\n\nare established.\n\no If a file .sqliterc can be found in the user's home directory, it is read and processed. It\nshould only contain \"dot commands\".  If the file is not found or cannot be  read,  processing\ncontinues without notification.\n\no  If  a  file is specified on the command line with the -init option, it is processed in the\nsame manner as .sqliterc\n\no All other command line options are processed\n\no The database is opened and you are now ready to begin.\n\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "http://www.hwaci.com/sw/sqlite/\nThe sqlite-doc package\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "This manual page was originally written by Andreas Rottmann <rotty@debian.org>, for  the  De‐\nbian GNU/Linux system (but may be used by others).\n\n\n\nMon Apr 15 23:49:17 2002                             SQLITE(1)",
                "subsections": []
            }
        }
    }
}