Метод | Описание | |
---|---|---|
BeginTransaction ( ) : int |
Starts a new transaction USE WITH CAUTION: SQLite DOES NOT SUPPORT MULTIPLE TRANSACTIONS
|
|
CleanUpArtists ( ) : int |
Deletes all unused artists from the DB
|
|
CleanUpReferences ( ) : int |
Re-creates the MangaTag table to remove PK value gaps
|
|
CleanUpTags ( ) : int |
Deletes all unused tags from the DB
|
|
CommitTransaction ( ) : int |
Commits the current transaction
|
|
Connect ( ) : bool |
Opens a connection to the database and imports any previous Manga DB's if possible
|
|
ContainsEntry ( string Artist, string Title ) : bool |
Returns whether the entry exists in the DB
|
|
DeleteManga ( int mangaID ) : bool |
Deletes an entry from the database
|
|
DeleteTag ( string TagText ) : int |
Deletes a tag based on the text passed in
|
|
Disconnect ( bool Recycle = false ) : void |
Vacuum's the DB and closes the connection
|
|
GetAllManga ( string SearchText = null, int MangaID = -1 ) : |
Returns the details of every manga in the database
|
|
GetArtists ( ) : string[] |
Returns all the artists in the database
|
|
GetDefaultType ( ) : string |
Returns the default manga category
|
|
GetLogContents ( ) : |
Returns the details of everything logged so far
|
|
GetManga ( int mangaID ) : |
Returns the full details of a specified manga
|
|
GetMangaDetail ( int mangaID, Manga Column ) : string |
Returns a single detail of a specified manga
|
|
GetMangaTitle ( int mangaID ) : string |
Returns the EH formatted title of a Manga
|
|
GetSetting ( Setting DBSetting ) : object |
Returns a setting from the DB
|
|
GetTags ( ) : string[] |
Returns all the tags in the database
|
|
GetThumbnail ( int MangaID ) : Image |
Returns the manga's thumbnail
|
|
GetTypes ( ) : string[] |
Returns all the manga types in the database
|
|
HasThumbnail ( int MangaID ) : bool |
Returns true if the entry has a thumbnail for it
|
|
IsConnected ( ) : bool |
Returns whether or not the DB connection is currently open
|
|
LogMessage ( |
Logs exception details to the DB to support future debugging
|
|
LogMessage ( string LogMessage, EventType eventType, object Source = null ) : bool |
Logs exception details to the DB to support future debugging
|
|
RollbackTransaction ( ) : int |
Rollbacks the current transaction
|
|
SaveManga ( string Artist, string Title, System.DateTime PublishedDate, string Tags = null, string Location = null, decimal Pages, int PageReadCount = -1, string Type = null, decimal Rating, string Description = null, string URL = null, bool ReadManga = false, int MangaID = -1 ) : int |
Insert or updates a manga
|
|
SaveReadProgress ( int MangaID, int PageReadCount = -1 ) : int |
Stores the last page read of a manga and updates it's read status
|
|
SaveThumbnail ( int MangaID, Image image ) : bool |
Saves a thumbnail image to the database
|
|
UpdateSetting ( Setting DBSetting, object setting ) : bool |
Update the indicated setting
|
|
VacuumDatabase ( ) : bool |
Runs the vacuum command on the database to reduce filesize if possible
|
Метод | Описание | |
---|---|---|
SQL ( ) : System |
Instantiates the non-static sqlBase that holds the DB connection
|
public static BeginTransaction ( ) : int | ||
Результат | int |
public static CleanUpReferences ( ) : int | ||
Результат | int |
public static CommitTransaction ( ) : int | ||
Результат | int |
public static ContainsEntry ( string Artist, string Title ) : bool | ||
Artist | string | The artist's name |
Title | string | The title of the maga |
Результат | bool |
public static DeleteManga ( int mangaID ) : bool | ||
mangaID | int | The ID of the record to be deleted |
Результат | bool |
public static DeleteTag ( string TagText ) : int | ||
TagText | string | The tag(s) to delete |
Результат | int |
public static Disconnect ( bool Recycle = false ) : void | ||
Recycle | bool | |
Результат | void |
public static GetAllManga ( string SearchText = null, int MangaID = -1 ) : |
||
SearchText | string | The user search parameters to compare against |
MangaID | int | |
Результат |
public static GetDefaultType ( ) : string | ||
Результат | string |
public static GetLogContents ( ) : |
||
Результат |
public static GetManga ( int mangaID ) : |
||
mangaID | int | The ID of the record |
Результат |
public static GetMangaDetail ( int mangaID, Manga Column ) : string | ||
mangaID | int | The ID of the record |
Column | Manga | |
Результат | string |
public static GetMangaTitle ( int mangaID ) : string | ||
mangaID | int | The ID of the record to access |
Результат | string |
public static GetSetting ( Setting DBSetting ) : object | ||
DBSetting | Setting | |
Результат | object |
public static GetThumbnail ( int MangaID ) : Image | ||
MangaID | int | |
Результат | Image |
public static HasThumbnail ( int MangaID ) : bool | ||
MangaID | int | The ID of the record |
Результат | bool |
public static LogMessage ( |
||
exception | The exception that occurred | |
eventType | EventType | The type of event being logged |
Source | object | |
Результат | bool |
public static LogMessage ( string LogMessage, EventType eventType, object Source = null ) : bool | ||
LogMessage | string | Coder explanation of the situation |
eventType | EventType | The type of event being logged |
Source | object | The object that caused the error |
Результат | bool |
public static RollbackTransaction ( ) : int | ||
Результат | int |
public static SaveManga ( string Artist, string Title, System.DateTime PublishedDate, string Tags = null, string Location = null, decimal Pages, int PageReadCount = -1, string Type = null, decimal Rating, string Description = null, string URL = null, bool ReadManga = false, int MangaID = -1 ) : int | ||
Artist | string | The name of the artist |
Title | string | The title of the manga |
PublishedDate | System.DateTime | The date the manga was published to EH |
Tags | string | The comma-delimited tags |
Location | string | The local filepath |
Pages | decimal | The number of pages |
PageReadCount | int | The last page read |
Type | string | The type of the manga |
Rating | decimal | The decimal rating |
Description | string | User comments |
URL | string | The source URL of the gallery |
ReadManga | bool | Whether the manga has been read |
MangaID | int | If passed through, attempts to update the indicated record |
Результат | int |
public static SaveReadProgress ( int MangaID, int PageReadCount = -1 ) : int | ||
MangaID | int | The ID of the manga to update |
PageReadCount | int | The last page read |
Результат | int |
public static SaveThumbnail ( int MangaID, Image image ) : bool | ||
MangaID | int | The manga the image is for |
image | Image | The cover thumbnail to save |
Результат | bool |
public static UpdateSetting ( Setting DBSetting, object setting ) : bool | ||
DBSetting | Setting | The name of the setting to update |
setting | object | The new value |
Результат | bool |