Grafoscopio

Artifact [169e60e6e5]
Login

Artifact 169e60e6e511a249e936488773628bc4b8191bce:

Wiki page [SQLite] by offray 2016-03-15 14:19:43.
D 2016-03-15T14:19:43.835
L SQLite
N text/x-markdown
P 99eb3efaec50ec07b7e2fc628c26878e6cae3947
U offray
W 1492
# 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.
Para ver más sobre los escenarios en los cuales SQLite puede ser usado, consulta [Appropriate Uses For SQLite](http://sqlite.org/whentouse.html).

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 941c449eee39c0fc8fffd411ca5271cc