Databases8k+ stars

SQLite

The most used database engine in the world

Commit Details

Message
"initial empty check-in"
Author
D. Richard Hipp
Date
2000-05-29
Hash
6f3655f79f9f7e7a1e26f5bc51e6e8efb8e5c96b

Fun Fact

SQLite is in the public domain. It's estimated to be the most widely deployed software module of any type, with over 1 trillion databases in active use.

</>First Code

C
/*
** 2000 May 29
**
** The author disclaims copyright to this source code.
**
*************************************************************************
** Main file for the SQLite library.
*/
#include "sqliteInt.h"

/*
** Execute SQL code.
*/
int sqlite_exec(
  sqlite *db,           /* The database */
  char *zSql,           /* The SQL to execute */
  sqlite_callback xCallback,  /* Callback function */
  void *pArg,           /* Argument to callback */
  char **pzErrMsg       /* Write error messages here */
){
  Parse sParse;
  
  memset(&sParse, 0, sizeof(sParse));
  sParse.db = db;
  sqlite_parse(&sParse, zSql);
  
  return sParse.rc;
}