Pudu programming language
Menu
API reference

Std.Db.Migrate.digestOf

1 declaration

fn

digestOf: &Std.Db.Migrate.Migration -> Str

This is a callable function.

What it does

The digest of a migration's statements as they stand.

What makes an edit after the fact detectable. Without it, a database that

ran the old text and one that ran the new both report the same version, and

nothing afterwards can tell that their schemas differ.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.
  • & borrows a value for this call instead of moving or copying it.

Back to Std.Db.MigrateSearch related declarations