geolite 0.0.11

open source geocode solution
pub mod address;
pub mod admin_level;
pub mod admin_level_hierarchy;
pub mod house_number;
pub mod osm_node;
pub mod osm_pbf_file;
pub mod osm_relation;
pub mod osm_tag;
pub mod osm_way;

#[cfg(test)]
#[path = "pbf_fixtures.test.rs"]
pub(crate) mod pbf_fixtures;

pub(crate) trait table {
  const CREATE: &str;
  const INDEXES: &str;

  fn create_table(conn: &rusqlite::Connection) {
    conn
      .execute_batch(Self::CREATE)
      .expect("failed to create table");
  }

  fn create_indexes(conn: &rusqlite::Connection) {
    conn
      .execute_batch(Self::INDEXES)
      .expect("failed to create indexes");
  }
}