[][src]Crate df_st_db

Re-exports

pub use schema::*;

Modules

schema

Macros

group_by

Creates a match condition on group_by used for counting the items with a particular value in the field that is grouped. Parameters:

id_filter

Create a HashMap used for id_filter

optional_filter

Add if statements for all the possible filters. The function must return in this statement for the filters to work. Parameters:

order_by

Creates a match condition on order_by used for sorting the database query. Parameters:

string_filter

Create a HashMap used for string_filter

Structs

Artifact
Coordinate
Creature
CreatureAG
CreatureBiome1
CreatureBiome2
CreatureHH1
CreatureHH2
CreatureLZ
DBDFWorld
DFWorldInfo
DanceForm
Entity
EntityChildENID
EntityHFID
EntityHonor
EntityLink
EntityOccasion
EntityOccasionSchedule
EntityOccasionScheduleFeature
EntityPopulation
EntityPopulationRace
EntityPosition
EntityPositionAssignment
EntityProfession
EntityWeapon
EntityWorshipID
HEAHFID
HEBodiesHFID
HECASupportMercHFID
HECAttackingHFID
HECDSupportMercHFID
HECDefendingHFID
HECHEID
HECIndividualMerc
HECNoncomHFID
HECOutcome
HECRelatedID
HECircumstance
HECompetitorHFID
HEConspiratorHFID
HEDHFID
HEExpelledCreature
HEExpelledHFID
HEExpelledNumber
HEExpelledPopID
HEGroupsHFID
HEImplicatedHFID
HEJoiningENID
HEPet
HEReason
HFEntityLink
HFEntityPositionLink
HFEntityReputation
HFEntitySquadLink
HFHonorEntity
HFHonorID
HFInteractionKnowledge
HFIntrigueActor
HFIntriguePlot
HFJourneyPets
HFLink
HFPlotActor
HFRelationshipProfileHF
HFSiteLink
HFSiteProperty
HFSkill
HFSpheres
HFVagueRelationship
HistoricalEra
HistoricalEvent
HistoricalEventAA
HistoricalEventBB
HistoricalEventCC
HistoricalEventCollection
HistoricalEventCollectionAC
HistoricalEventCollectionDZ
HistoricalEventDD1
HistoricalEventDD2
HistoricalEventEG
HistoricalEventHH
HistoricalEventII
HistoricalEventJM
HistoricalEventNO
HistoricalEventPP
HistoricalEventQR
HistoricalEventSS1
HistoricalEventSS2
HistoricalEventTT
HistoricalEventUW
HistoricalFigure
Identity
Landmass
LinkHEHF
MapImage
MountainPeak
MusicalForm
Path
PoeticForm
Rectangle
Region
RegionForce
River
Site
SiteMapImage
SiteMapImages
SiteProperty
Structure
UndergroundRegion
WCReference
WCStyle
WorldConstruction
WorldMapImages
WrittenContent

Enums

OrderTypes

Traits

DBObject

Functions

check_db_and_config_match

Checks if the DB type matches the config type So if version is compiled for postgres, config should be for postgres If they down match, panic.

check_db_has_tables
create_user
establish_connection
get_db_service_name

Returns the name of the database service ("postgres" or "sqlite")

recreate_database
run_migrations

Type Definitions

DbConnection
DbError
DbManager
DbPool