Versions in this module Expand all Collapse all v0 v0.0.3 Jul 2, 2024 Changes in this version + var MongoConn = atdb.MongoConnect(MongoInfo) + var MongoInfo = atdb.DBInfo + var MongoString string = os.Getenv("MONGOSTRING") + func DeletePasienByID(_id primitive.ObjectID, db *mongo.Database, col string) error + func GetAllPasien(db *mongo.Database, col string) (data []model.Biodata) + func GetPasienByID(_id primitive.ObjectID, db *mongo.Database, col string) (model.Biodata, error) + func InsertOneDoc(db string, collection string, doc interface{}) (insertedID interface{}) + func InsertPasien(db *mongo.Database, col string, pasienName string, gender string, ttl string, ...) (insertedID primitive.ObjectID, err error) + func MongoConnect(dbname string) (db *mongo.Database) + func UpdatePasien(ctx context.Context, db *mongo.Database, col string, _id primitive.ObjectID, ...) (err error)