Grafoscopio

Update of "SQLite"
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

Artifact ID: 99eb3efaec50ec07b7e2fc628c26878e6cae3947
Page Name:SQLite
Date: 2016-02-23 02:27:51
Original User: offray
Mimetype:text/x-markdown
Next 169e60e6e511a249e936488773628bc4b8191bce
Content

SQLite

SQLite 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.

Debido a que sólo hasta abril de 2016 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