2017 © Pedro Peláez
 

silverstripe-vendormodule sqlite3

image

silverstripe/sqlite3

  • Thursday, August 2, 2018
  • by tractorcow
  • Repository
  • 15 Watchers
  • 8 Stars
  • 198,075 Installations
  • PHP
  • 12 Dependents
  • 0 Suggesters
  • 19 Forks
  • 2 Open issues
  • 18 Versions
  • 5 % Grown

The README.md

SQLite3 Module

Build Status SilverStripe supported module, (*1)

Maintainer Contact

Andreas Piening (Nickname: apiening) , (*2)

Requirements

  • SilverStripe 4.0 or newer

Installation

  • Install using composer with composer require silverstripe/sqlite3 ^2.

Configuration

Either use the installer to automatically install SQLite or add this to your _config.php (right after "require_once("conf/ConfigureFromEnv.php");" if you are using _ss_environment.php), (*3)

$databaseConfig['type'] = 'SQLite3Database';
$databaseConfig['path'] = "/path/to/my/database/file";

Make sure the webserver has sufficient privileges to write to that folder and that it is protected from external access., (*4)

Sample mysite/_config.php

<?php
global $project;
$project = 'mysite';

global $database;
$database = 'SS_mysite';

require_once("conf/ConfigureFromEnv.php");

global $databaseConfig;
$databaseConfig = array(
    "type" => 'SQLite3Database',
    "server" => 'none',
    "username" => 'none',
    "password" => 'none',
    "database" => $database,
    "path" => "/path/to/my/database/file",
);

Again: make sure that the webserver has permission to read and write to the above path (/path/to/my/database/, 'file' would be the name of the sqlite db file), (*5)

URL parameter

If you're trying to change a field constrain to NOT NULL on a field that contains NULLs dev/build fails because it might corrupt existing records. In order to perform the action anyway add the URL parameter 'avoidConflict' when running dev/build which temporarily adds a conflict clause to the field spec. E.g.: http://www.my-project.com/?avoidConflict=1, (*6)

Open Issues

  • SQLite3 is supposed to work with all may not work with certain modules as they are using custom SQL statements passed to the DB class directly ;(
  • there is no real fulltext search yet and the build-in search engine is not ordering by relevance, check out fts3

The Versions

02/08 2018

dev-sqlquery-enhancements

dev-sqlquery-enhancements

  Sources   Download

02/08 2018

1.1.x-dev

1.1.9999999.9999999-dev

  Sources   Download

05/07 2018

2.x-dev

2.9999999.9999999.9999999-dev

Adds SQLite3 support to SilverStripe

  Sources   Download

The Requires

 

The Development Requires

database silverstripe sqlite3

19/03 2018

dev-master

9999999-dev

Adds SQLite3 support to SilverStripe

  Sources   Download

The Requires

 

The Development Requires

database silverstripe sqlite3

06/03 2018

1.0.0

1.0.0.0

  Sources   Download

06/03 2018

0.1.0

0.1.0.0

  Sources   Download

06/03 2018

1.1.0

1.1.0.0

  Sources   Download

06/03 2018

1.2.0

1.2.0.0

  Sources   Download

07/12 2017

2.1.x-dev

2.1.9999999.9999999-dev

Adds SQLite3 support to SilverStripe

  Sources   Download

The Requires

 

The Development Requires

database silverstripe sqlite3

07/12 2017

2.1.1

2.1.1.0

Adds SQLite3 support to SilverStripe

  Sources   Download

The Requires

 

The Development Requires

database silverstripe sqlite3

07/12 2017

2.0.x-dev

2.0.9999999.9999999-dev

Adds SQLite3 support to SilverStripe

  Sources   Download

The Requires

 

The Development Requires

database silverstripe sqlite3

07/12 2017

1.4.x-dev

1.4.9999999.9999999-dev

Adds SQLite3 support to SilverStripe

  Sources   Download

The Requires

 

database silverstripe sqlite3

23/11 2017

2.1.0

2.1.0.0

Adds SQLite3 support to SilverStripe

  Sources   Download

The Requires

 

The Development Requires

database silverstripe sqlite3

26/10 2016

2.1.0-alpha1

2.1.0.0-alpha1

Adds SQLite3 support to SilverStripe

  Sources   Download

The Requires

 

The Development Requires

database silverstripe sqlite3

23/03 2016

2.0.0

2.0.0.0

Adds SQLite3 support to SilverStripe

  Sources   Download

The Requires

 

The Development Requires

database silverstripe sqlite3

16/10 2015

1.4.0

1.4.0.0

Adds SQLite3 support to SilverStripe

  Sources   Download

The Requires

 

database silverstripe sqlite3

27/10 2014

1.3.x-dev

1.3.9999999.9999999-dev

Adds SQLite3 support to SilverStripe

  Sources   Download

The Requires

 

database silverstripe sqlite3

03/01 2013

1.2.x-dev

1.2.9999999.9999999-dev

Adds SQLite3 support to SilverStripe

  Sources   Download

The Requires

 

database silverstripe sqlite3