(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
import { firestore } from 'firebase' | |
import { injectable, inject, Container } from 'inversify' | |
import { db } from '@/plugins/firebase' | |
import 'reflect-metadata' | |
class RestaurantDataModel { | |
constructor(init: any) { | |
this.id = init.id || this.id | |
this.clientUID = init.clientUID || this.clientUID | |
this.content = init.content || this.content |
use tokio_postgres::{NoTls, Error}; | |
pub async fn pg_delete_old_records() -> Result<(), Error> { | |
let (client, connection) = tokio_postgres::connect("postgres://postgres:postgres@localhost:5432/test_db", NoTls).await?; | |
tokio::spawn(async move { | |
if let Err(e) = connection.await { | |
eprintln!("connection error: {}", e); | |
} | |
}); |