Grafoscopio

Artifact [2e83b7ddec]
Login

Artifact 2e83b7ddecfd97c43c1b0190c0ef98a182d5856f:

Wiki page [SQLite] by offray 2016-03-15 14:25:27.
D 2016-03-15T14:25:27.304
L SQLite
N text/x-markdown
P 169e60e6e511a249e936488773628bc4b8191bce
U offray
W 1728
# SQLite

[SQLite](http://sqlite.org/) es un motor de bases de datos liviano y autocontenido que está desplegado en una gran cantidad de dispositivos y lugares (es quizás el motor de bases de datos de mayor despliegue en el mundo). Se puede usar para varias operaciones con datos, con una configuración mínima y muy buen desempeño.

**Referencias extra**

  - [Appropriate Uses For SQLite](http://sqlite.org/whentouse.html): Para ver más sobre los escenarios en los cuales SQLite puede ser usado.
  - [DB Browser for SQLite](http://sqlitebrowser.org/): Una herramienta visual de código abierto para crear diseñar, editar, importar, exportar y transformar archivos compatibles con SQLite.

## Instalación:

Debido a que sólo hasta abril de 2016 (aprox.) Pharo soportará nativamente 64 bits, para integrar SQLite a Grafoscopio, se debe instalar la versión de 32 bits de SQLite, luego instalar `NBSQlite` desde el `spotter` y finalmente hacer esta corrección en el código fuente:

Cambiar


    apiBindInteger: aStatement atColumn: aColumn with: anInteger
      "int sqlite3_bind_int64(sqlite3_stmt*, int, sqlite_int64)"
      <primitive: #primitiveNativeCall module: #NativeBoostPlugin error: errorCode>
      ^ self nbCall: #(int sqlite3_bind_int64 (sqlite3_stmt aStatement, int aColumn, int anInteger))
        module: self library


por:

    apiBindInteger: aStatement atColumn: aColumn with: anInteger
      "int sqlite3_bind_int64(sqlite3_stmt*, int, sqlite_int64)"
      <primitive: #primitiveNativeCall module: #NativeBoostPlugin error: errorCode>
      ^ self nbCall: #(int sqlite3_bind_int64 (sqlite3_stmt aStatement, int aColumn, int anInteger))
        module: self library

Z 5ae7a1be41e8ede2b74ff157620f01cb