Repository - API - Source
Note
method globally_unique_id
has been moved to NoteGuidHelper
and included into note.guid
attribute also now has a public setter.Deck.new
was saving the deck to the collection.anki21
database. Now it will only instantiate it and #save
must be called to save it.Helper
modules moved into the Helpers
module namespace.AnkiPackage::new
yields the collection object to the block instead of the Anki package object.AnkiPackage::open
has been developed to a point that it is useable.collection.anki21
database.AnkiPackage#execute
was removed.AnkiPackage#prepare
was added. Any SQL statements executed directly against collection.anki21
must now be prepared statements.collection.anki21
database.Collection#find_note_by
.Note#save
now updates a note (and its corresponding cards) if it was already in the collection.anki21
database.Note::new
does not accept a cloze
argument anymore; this attribute can be changed after instantiation with the cloze=
setter.Deck
has a deck_options_group
attribute instead of deck_options_group_id
#inspect
added to Deck
Collection#find_deck_options_group_by
last_modified_time
and creation_timestamp
attributes had these renamed to last_modified_timestamp
and created_at_timestamp
.req
value.tags
and vers
were introduced and then fixed.tags
and vers
so this was changed too.AnkiPackage#zip_and_close
renamed to AnkiPackage#zip
.Collection#find_deck_by
and Collection#find_note_type_by
.collection.anki21
database.cards
table..apkg
files that import into Anki.collection.anki21
database before the zip file is created.