c8998cc81c
Rename rebuild_secondary_fields to _create_secondary_columns
2016-12-08 23:09:00 +00:00
4e812c738b
Remove a couple more unused methods
2016-12-08 22:05:05 +00:00
d8796d35fb
Remove methods that create secondary indexes
...
All indexes are created in the _create_schema method.
2016-12-08 21:49:52 +00:00
c358d5c3e1
Remove creation of unnecessary version files
...
The BSDDB version is not relevant for DBAPI databases. The python
version will always be 3 and the pickle upgrade "YES".
2016-12-08 18:59:42 +00:00
4a30d9e4b7
Make update_backlinks method protected
2016-12-08 15:16:26 +00:00
013617dafb
Rename update_schema to _create_schema
2016-12-08 15:06:06 +00:00
4e2ab54fb9
Remove unused restore method
2016-12-07 19:29:53 +00:00
2c454268a1
Remove drop_tables and reload methods
...
These methods are not used and we would not normally want to
drop all tables in a database.
2016-12-06 18:07:42 +00:00
35b7495438
9541: Make metadata methods protected
2016-12-06 17:10:07 +00:00
9d77418b30
9541: Make backend methods protected
2016-12-05 19:41:12 +00:00
27c2b0c81d
9748: Use COLLATE clause rather than locale specific columns
2016-11-30 23:13:12 +00:00
1039156019
9508: Fix place tree cursor
2016-11-29 23:26:50 +00:00
3bf40f9921
Remove trailing semi-colon from SQL statements
2016-11-29 16:41:47 +00:00
634691516c
Arrange database methods into a more logical order
2016-11-29 16:21:21 +00:00
5826307b63
Remove trailing whitespace
2016-11-28 22:16:49 +00:00
baff7cddb0
9810: Fix undo/redo reference updates
...
Also rewrite to avoid using table maps.
2016-11-28 21:18:11 +00:00
19201eed67
Improve efficiency of get_tag_from_name method
2016-10-29 22:18:07 +01:00
5bbce108fd
Tidy up some SQL
2016-10-28 23:31:18 +01:00
ad49598b51
9744: Tidy up _get_raw_*_from_id_data methods
2016-10-28 22:47:10 +01:00
9fc316abdf
9744: Tidy up iterators
...
Remove order_by parameter.
Add unit tests.
2016-10-28 21:43:00 +01:00
89cba484c0
9744: Tidy up commit_* methods
2016-10-28 17:07:27 +01:00
ddce9b0138
Add more database unit tests
2016-10-25 23:01:34 +01:00
73d87e59e3
Remove build_surname_list and save_surname_list from public API
2016-10-25 22:18:48 +01:00
f036206961
9742: Rewrite cursors to avoid using table maps
2016-10-25 21:29:59 +01:00
ce59a8a5c9
9744: Tidy up get_number_of_* methods
2016-10-19 22:18:25 +01:00
1494b5d28e
Use KEY_TO_NAME_MAP to get table names
2016-10-17 21:54:31 +01:00
c1c616e0f3
9742: Avoid using table maps in commit methods
2016-10-17 21:51:15 +01:00
a3718e23ab
9742: Rewrite remove_* methods
...
Avoid using table maps in _do_remove.
2016-10-17 19:13:22 +01:00
6092065fe3
9744: Tidy up get_raw_*_data methods
2016-10-17 18:13:47 +01:00
3149420f80
9744: Tidy up has_*_handle methods
2016-10-17 17:43:21 +01:00
7b183fc79c
9742: Rewrite get_*_gramps_ids methods
...
Use get_gramps_ids rather than table maps.
2016-10-16 19:35:50 +01:00
5c28d739ea
9743: Tidy up has_*_gramps_id methods
...
Renamed from has_gramps_id_for_* methods.
2016-10-14 23:31:20 +01:00
2babfd2e8b
9742: Tidy up has_*_handle methods
...
Rename has_handle_for_* methods to has_*_handle methods.
2016-10-14 18:36:07 +01:00
8548f16ae2
9742: Tidy up get_raw_*_data methods
...
Remove protected methods.
Avoid the use of table maps.
2016-10-14 18:01:42 +01:00
a158c9cba8
9746: Remove duplicate columns in person table
2016-10-13 23:46:19 +01:00
b29682cafb
Tidy up schema
...
These changes produce a neater schema output in sqlite3.
2016-10-13 20:34:58 +01:00
4a70e9233e
9747: Remove index on primary key column
...
Primary key columns are already indexed.
2016-10-13 19:16:24 +01:00
2993d59c2e
9749: Move experimental Select API code into a branch
2016-10-12 21:46:52 +01:00
9e5f899bbd
9710: dbapi pylint issues, adjustment
2016-09-23 10:39:15 -04:00
a9f1377529
9710: dbapi pylint issues
2016-09-23 06:30:51 -04:00
3461316067
0009515: DBAPI:
...
gramps.plugins.database.dbapi_support.sqlite.Sqlite.try_execute ignores
errors Check if the table 'person' exists to determine whether the
database is new.
2016-08-01 16:34:46 +01:00
64ece7f978
Removed unused dbapi.rebuild_gender_stats()
...
Thanks to Paul F. for finding this.
2016-07-22 07:18:01 -04:00
22afe47966
DB-API: remove duplicate indexing calls
2016-07-21 07:46:55 -04:00
6975e30861
increase pylint score from 7.17 to 9.02
2016-07-15 11:53:24 -07:00
05bd51b425
Remove DB-API XML config; replace with settings.py/.ini
2016-07-12 13:21:09 -04:00
0719e04858
Update directory structure for database plugins
2016-07-03 18:37:30 +01:00